/* Options: Date: 2025-12-06 06:06:46 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: AgentDownlineCountRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class AgentDownlineCount implements IConvertible { String? AgentStatus; int? CountAgentStatus; AgentDownlineCount({this.AgentStatus,this.CountAgentStatus}); AgentDownlineCount.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AgentStatus = json['AgentStatus']; CountAgentStatus = json['CountAgentStatus']; return this; } Map toJson() => { 'AgentStatus': AgentStatus, 'CountAgentStatus': CountAgentStatus }; getTypeName() => "AgentDownlineCount"; TypeContext? context = _ctx; } class AgentDownlineCountResponse implements IConvertible { List? result = []; ResponseStatus? ResponseStatus; AgentDownlineCountResponse({this.result,this.ResponseStatus}); AgentDownlineCountResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { result = JsonConverters.fromJson(json['result'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'result': JsonConverters.toJson(result,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "AgentDownlineCountResponse"; TypeContext? context = _ctx; } // @Route("/v1/AgentDownlineCount", "GET,OPTIONS") // @Route("/v1/AgentDownlineCount/{AgentId}", "GET,OPTIONS") class AgentDownlineCountRequest implements IReturn, IConvertible, IGet { int? AgentId; AgentDownlineCountRequest({this.AgentId}); AgentDownlineCountRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AgentId = json['AgentId']; return this; } Map toJson() => { 'AgentId': AgentId }; createResponse() => AgentDownlineCountResponse(); getResponseTypeName() => "AgentDownlineCountResponse"; getTypeName() => "AgentDownlineCountRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'AgentDownlineCount': TypeInfo(TypeOf.Class, create:() => AgentDownlineCount()), 'AgentDownlineCountResponse': TypeInfo(TypeOf.Class, create:() => AgentDownlineCountResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'AgentDownlineCountRequest': TypeInfo(TypeOf.Class, create:() => AgentDownlineCountRequest()), });