/* Options: Date: 2026-09-05 08:47:39 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.dev.dynamics.trendsic.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: DispatchHeartbeatRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class DispatchHeartbeatTenantResult implements IConvertible { String? TenantId; int? Tickets; int? Releases; int? PingsCascaded; int? OffersExpired; String? Error; DispatchHeartbeatTenantResult({this.TenantId,this.Tickets,this.Releases,this.PingsCascaded,this.OffersExpired,this.Error}); DispatchHeartbeatTenantResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { TenantId = json['TenantId']; Tickets = json['Tickets']; Releases = json['Releases']; PingsCascaded = json['PingsCascaded']; OffersExpired = json['OffersExpired']; Error = json['Error']; return this; } Map toJson() => { 'TenantId': TenantId, 'Tickets': Tickets, 'Releases': Releases, 'PingsCascaded': PingsCascaded, 'OffersExpired': OffersExpired, 'Error': Error }; getTypeName() => "DispatchHeartbeatTenantResult"; TypeContext? context = _ctx; } class DispatchHeartbeatResponse implements IConvertible { int? Tenants; int? Tickets; int? Releases; int? PingsCascaded; int? OffersExpired; List? Results = []; ResponseStatus? ResponseStatus; DispatchHeartbeatResponse({this.Tenants,this.Tickets,this.Releases,this.PingsCascaded,this.OffersExpired,this.Results,this.ResponseStatus}); DispatchHeartbeatResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Tenants = json['Tenants']; Tickets = json['Tickets']; Releases = json['Releases']; PingsCascaded = json['PingsCascaded']; OffersExpired = json['OffersExpired']; Results = JsonConverters.fromJson(json['Results'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Tenants': Tenants, 'Tickets': Tickets, 'Releases': Releases, 'PingsCascaded': PingsCascaded, 'OffersExpired': OffersExpired, 'Results': JsonConverters.toJson(Results,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "DispatchHeartbeatResponse"; TypeContext? context = _ctx; } // @Route("/v1/dispatch/heartbeat", "POST,OPTIONS") class DispatchHeartbeatRequest implements IReturn, IConvertible, IPost { String? TenantId; DispatchHeartbeatRequest({this.TenantId}); DispatchHeartbeatRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { TenantId = json['TenantId']; return this; } Map toJson() => { 'TenantId': TenantId }; createResponse() => DispatchHeartbeatResponse(); getResponseTypeName() => "DispatchHeartbeatResponse"; getTypeName() => "DispatchHeartbeatRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'DispatchHeartbeatTenantResult': TypeInfo(TypeOf.Class, create:() => DispatchHeartbeatTenantResult()), 'DispatchHeartbeatResponse': TypeInfo(TypeOf.Class, create:() => DispatchHeartbeatResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'DispatchHeartbeatRequest': TypeInfo(TypeOf.Class, create:() => DispatchHeartbeatRequest()), });