/* Options: Date: 2025-12-06 05:07:40 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: SupportRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class Support implements IConvertible { int? SupportId; int? TicketId; int? AgentId; Support({this.SupportId,this.TicketId,this.AgentId}); Support.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SupportId = json['SupportId']; TicketId = json['TicketId']; AgentId = json['AgentId']; return this; } Map toJson() => { 'SupportId': SupportId, 'TicketId': TicketId, 'AgentId': AgentId }; getTypeName() => "Support"; TypeContext? context = _ctx; } class SupportExtended extends Support implements IConvertible { String? AgentName; SupportExtended({this.AgentName}); SupportExtended.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); AgentName = json['AgentName']; return this; } Map toJson() => super.toJson()..addAll({ 'AgentName': AgentName }); getTypeName() => "SupportExtended"; TypeContext? context = _ctx; } class SupportResponse implements IConvertible { ResponseStatus? ResponseStatus; List? Support = []; SupportResponse({this.ResponseStatus,this.Support}); SupportResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Support = JsonConverters.fromJson(json['Support'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Support': JsonConverters.toJson(Support,'List',context!) }; getTypeName() => "SupportResponse"; TypeContext? context = _ctx; } // @Route("/v1/SupportEdit", "POST,DELETE,OPTIONS") // @Route("/v1/SupportEdit/{TicketId}", "GET") class SupportRequest implements IReturn, IConvertible, IGet { List? Support = []; int? AgentId; int? TicketId; SupportRequest({this.Support,this.AgentId,this.TicketId}); SupportRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Support = JsonConverters.fromJson(json['Support'],'List',context!); AgentId = json['AgentId']; TicketId = json['TicketId']; return this; } Map toJson() => { 'Support': JsonConverters.toJson(Support,'List',context!), 'AgentId': AgentId, 'TicketId': TicketId }; createResponse() => SupportResponse(); getResponseTypeName() => "SupportResponse"; getTypeName() => "SupportRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'Support': TypeInfo(TypeOf.Class, create:() => Support()), 'SupportExtended': TypeInfo(TypeOf.Class, create:() => SupportExtended()), 'SupportResponse': TypeInfo(TypeOf.Class, create:() => SupportResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SupportRequest': TypeInfo(TypeOf.Class, create:() => SupportRequest()), 'List': TypeInfo(TypeOf.Class, create:() => []), });