/* Options: Date: 2025-10-28 02:07:54 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://duengageapi.uat.scadsoftware.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SegmentsAutoQueryAdd.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:collection */ import 'package:servicestack/servicestack.dart'; import 'dart:collection'; class Segments implements IConvertible { // @DataMember(Order=1) // @Required() int? Id; // @DataMember(Order=2) // @Required() // @References(typeof(Tenants)) int? TenantsId; // @DataMember(Order=3) // @Required() String? Name; // @DataMember(Order=4) bool? IsCustom; Segments({this.Id,this.TenantsId,this.Name,this.IsCustom}); Segments.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; TenantsId = json['TenantsId']; Name = json['Name']; IsCustom = json['IsCustom']; return this; } Map toJson() => { 'Id': Id, 'TenantsId': TenantsId, 'Name': Name, 'IsCustom': IsCustom }; getTypeName() => "Segments"; TypeContext? context = _ctx; } // @Route("/auto/segments", "POST") class SegmentsAutoQueryAdd implements IReturn, ICreateDb, IConvertible, IPost { // @DataMember(Order=2) int? TenantsId; // @DataMember(Order=3) String? Name; // @DataMember(Order=4) bool? IsCustom; SegmentsAutoQueryAdd({this.TenantsId,this.Name,this.IsCustom}); SegmentsAutoQueryAdd.fromJson(Map json) { fromMap(json); } fromMap(Map json) { TenantsId = json['TenantsId']; Name = json['Name']; IsCustom = json['IsCustom']; return this; } Map toJson() => { 'TenantsId': TenantsId, 'Name': Name, 'IsCustom': IsCustom }; createResponse() => IdResponse(); getResponseTypeName() => "IdResponse"; getTypeName() => "SegmentsAutoQueryAdd"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'duengageapi.uat.scadsoftware.com', types: { 'Segments': TypeInfo(TypeOf.Class, create:() => Segments()), 'SegmentsAutoQueryAdd': TypeInfo(TypeOf.Class, create:() => SegmentsAutoQueryAdd()), });