/* Options: Date: 2025-12-06 09:43:52 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: NewAgentRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class NewAgent implements IConvertible { int? AgentId; String? FirstName; String? LastName; String? UserName; String? Email; bool? IsAdmin; NewAgent({this.AgentId,this.FirstName,this.LastName,this.UserName,this.Email,this.IsAdmin}); NewAgent.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AgentId = json['AgentId']; FirstName = json['FirstName']; LastName = json['LastName']; UserName = json['UserName']; Email = json['Email']; IsAdmin = json['IsAdmin']; return this; } Map toJson() => { 'AgentId': AgentId, 'FirstName': FirstName, 'LastName': LastName, 'UserName': UserName, 'Email': Email, 'IsAdmin': IsAdmin }; getTypeName() => "NewAgent"; TypeContext? context = _ctx; } class NewAgentResponse implements IConvertible { ResponseStatus? ResponseStatus; List? NewAgent = []; NewAgentResponse({this.ResponseStatus,this.NewAgent}); NewAgentResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); NewAgent = JsonConverters.fromJson(json['NewAgent'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'NewAgent': JsonConverters.toJson(NewAgent,'List',context!) }; getTypeName() => "NewAgentResponse"; TypeContext? context = _ctx; } // @Route("/v1/NewAgent", "GET,POST,OPTIONS") // @Route("/v1/NewAgent/{AgentId}", "GET,PUT,OPTIONS") class NewAgentRequest implements IReturn, IConvertible, IGet { int? AgentId; List? NewAgent = []; NewAgentRequest({this.AgentId,this.NewAgent}); NewAgentRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AgentId = json['AgentId']; NewAgent = JsonConverters.fromJson(json['NewAgent'],'List',context!); return this; } Map toJson() => { 'AgentId': AgentId, 'NewAgent': JsonConverters.toJson(NewAgent,'List',context!) }; createResponse() => NewAgentResponse(); getResponseTypeName() => "NewAgentResponse"; getTypeName() => "NewAgentRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'NewAgent': TypeInfo(TypeOf.Class, create:() => NewAgent()), 'NewAgentResponse': TypeInfo(TypeOf.Class, create:() => NewAgentResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'NewAgentRequest': TypeInfo(TypeOf.Class, create:() => NewAgentRequest()), });