/* Options: Date: 2025-12-06 08:13:21 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: TicketTypeSubscriptionRequestByAgent.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class TicketTypeSubscription implements IConvertible { int? TicketTypeSubscriptionId; int? TicketTypeId; int? AgentId; TicketTypeSubscription({this.TicketTypeSubscriptionId,this.TicketTypeId,this.AgentId}); TicketTypeSubscription.fromJson(Map json) { fromMap(json); } fromMap(Map json) { TicketTypeSubscriptionId = json['TicketTypeSubscriptionId']; TicketTypeId = json['TicketTypeId']; AgentId = json['AgentId']; return this; } Map toJson() => { 'TicketTypeSubscriptionId': TicketTypeSubscriptionId, 'TicketTypeId': TicketTypeId, 'AgentId': AgentId }; getTypeName() => "TicketTypeSubscription"; TypeContext? context = _ctx; } class TicketTypeSubscriptionExtended extends TicketTypeSubscription implements IConvertible { String? AgentName; String? TicketType; TicketTypeSubscriptionExtended({this.AgentName,this.TicketType}); TicketTypeSubscriptionExtended.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); AgentName = json['AgentName']; TicketType = json['TicketType']; return this; } Map toJson() => super.toJson()..addAll({ 'AgentName': AgentName, 'TicketType': TicketType }); getTypeName() => "TicketTypeSubscriptionExtended"; TypeContext? context = _ctx; } class TicketTypeSubscriptionResponse implements IConvertible { ResponseStatus? ResponseStatus; List? TicketTypeSubscription = []; TicketTypeSubscriptionResponse({this.ResponseStatus,this.TicketTypeSubscription}); TicketTypeSubscriptionResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); TicketTypeSubscription = JsonConverters.fromJson(json['TicketTypeSubscription'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'TicketTypeSubscription': JsonConverters.toJson(TicketTypeSubscription,'List',context!) }; getTypeName() => "TicketTypeSubscriptionResponse"; TypeContext? context = _ctx; } // @Route("/v1/TicketTypeSubscription/Agent/{AgentId}", "GET") class TicketTypeSubscriptionRequestByAgent implements IReturn, IConvertible, IGet { int? AgentId; TicketTypeSubscriptionRequestByAgent({this.AgentId}); TicketTypeSubscriptionRequestByAgent.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AgentId = json['AgentId']; return this; } Map toJson() => { 'AgentId': AgentId }; createResponse() => TicketTypeSubscriptionResponse(); getResponseTypeName() => "TicketTypeSubscriptionResponse"; getTypeName() => "TicketTypeSubscriptionRequestByAgent"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'TicketTypeSubscription': TypeInfo(TypeOf.Class, create:() => TicketTypeSubscription()), 'TicketTypeSubscriptionExtended': TypeInfo(TypeOf.Class, create:() => TicketTypeSubscriptionExtended()), 'TicketTypeSubscriptionResponse': TypeInfo(TypeOf.Class, create:() => TicketTypeSubscriptionResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'TicketTypeSubscriptionRequestByAgent': TypeInfo(TypeOf.Class, create:() => TicketTypeSubscriptionRequestByAgent()), });