/* Options: Date: 2025-10-27 21:35:15 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: SegmentsAutoQueryLookup.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; 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/{Id}", "GET") // @Route("/auto/segments", "GET") class SegmentsAutoQueryLookup extends QueryDb implements IReturn>, IGet, IConvertible { // @DataMember(Order=1) int? Id; // @DataMember(Order=2) int? TenantsId; SegmentsAutoQueryLookup({this.Id,this.TenantsId}); SegmentsAutoQueryLookup.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Id = json['Id']; TenantsId = json['TenantsId']; return this; } Map toJson() => super.toJson()..addAll({ 'Id': Id, 'TenantsId': TenantsId }); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "SegmentsAutoQueryLookup"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'duengageapi.uat.scadsoftware.com', types: { 'Segments': TypeInfo(TypeOf.Class, create:() => Segments()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'SegmentsAutoQueryLookup': TypeInfo(TypeOf.Class, create:() => SegmentsAutoQueryLookup()), 'List': TypeInfo(TypeOf.Class, create:() => []), });