/* Options: Date: 2025-10-27 21:55:24 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: SegmentsAdd.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:collection */ import 'package:servicestack/servicestack.dart'; import 'dart:collection'; class SegmentsAddResponse implements IConvertible { // @DataMember(Order=2) int? TenantsId; // @DataMember(Order=3) String? Name; // @DataMember(Order=4) bool? IsCustom; // @DataMember(Order=6) ResponseStatus? ResponseStatus; SegmentsAddResponse({this.TenantsId,this.Name,this.IsCustom,this.ResponseStatus}); SegmentsAddResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { TenantsId = json['TenantsId']; Name = json['Name']; IsCustom = json['IsCustom']; ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'TenantsId': TenantsId, 'Name': Name, 'IsCustom': IsCustom, 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "SegmentsAddResponse"; TypeContext? context = _ctx; } // @Route("/segments", "POST") // @DataContract class SegmentsAdd implements IReturn, IConvertible, IPost { // @DataMember(Order=2) // @Validate(Validator="NotNull") int? TenantsId; // @DataMember(Order=3) // @Validate(Validator="NotNull") String? Name; // @DataMember(Order=4) bool? IsCustom; SegmentsAdd({this.TenantsId,this.Name,this.IsCustom}); SegmentsAdd.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() => SegmentsAddResponse(); getResponseTypeName() => "SegmentsAddResponse"; getTypeName() => "SegmentsAdd"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'duengageapi.uat.scadsoftware.com', types: { 'SegmentsAddResponse': TypeInfo(TypeOf.Class, create:() => SegmentsAddResponse()), 'SegmentsAdd': TypeInfo(TypeOf.Class, create:() => SegmentsAdd()), });