/* Options: Date: 2025-10-28 00:55:57 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: SegmentsAutoQueryEdit.* //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/{Id}", "PUT") class SegmentsAutoQueryEdit implements IReturn, IUpdateDb, IConvertible, IPut { // @DataMember(Order=1) int? Id; // @DataMember(Order=2) int? TenantsId; // @DataMember(Order=3) String? Name; // @DataMember(Order=4) bool? IsCustom; SegmentsAutoQueryEdit({this.Id,this.TenantsId,this.Name,this.IsCustom}); SegmentsAutoQueryEdit.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 }; createResponse() => Segments(); getResponseTypeName() => "Segments"; getTypeName() => "SegmentsAutoQueryEdit"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'duengageapi.uat.scadsoftware.com', types: { 'Segments': TypeInfo(TypeOf.Class, create:() => Segments()), 'SegmentsAutoQueryEdit': TypeInfo(TypeOf.Class, create:() => SegmentsAutoQueryEdit()), });