/* Options: Date: 2025-12-06 06:28:17 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: ContactTypeRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class ContactType implements IConvertible { int? ContactTypeId; String? ContactTypeName; ContactType({this.ContactTypeId,this.ContactTypeName}); ContactType.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ContactTypeId = json['ContactTypeId']; ContactTypeName = json['ContactTypeName']; return this; } Map toJson() => { 'ContactTypeId': ContactTypeId, 'ContactTypeName': ContactTypeName }; getTypeName() => "ContactType"; TypeContext? context = _ctx; } class ContactTypeResponse implements IConvertible { ResponseStatus? ResponseStatus; List? ContactType = []; ContactTypeResponse({this.ResponseStatus,this.ContactType}); ContactTypeResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); ContactType = JsonConverters.fromJson(json['ContactType'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'ContactType': JsonConverters.toJson(ContactType,'List',context!) }; getTypeName() => "ContactTypeResponse"; TypeContext? context = _ctx; } // @Route("/v1/ContactType", "GET,POST,PUT,DELETE,OPTIONS") // @Route("/v1/ContactType/{ContactTypeId}", "GET,POST,PUT,DELETE,OPTIONS") class ContactTypeRequest implements IReturn, IConvertible, IPost { List? ContactType = []; ContactTypeRequest({this.ContactType}); ContactTypeRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ContactType = JsonConverters.fromJson(json['ContactType'],'List',context!); return this; } Map toJson() => { 'ContactType': JsonConverters.toJson(ContactType,'List',context!) }; createResponse() => ContactTypeResponse(); getResponseTypeName() => "ContactTypeResponse"; getTypeName() => "ContactTypeRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'ContactType': TypeInfo(TypeOf.Class, create:() => ContactType()), 'ContactTypeResponse': TypeInfo(TypeOf.Class, create:() => ContactTypeResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ContactTypeRequest': TypeInfo(TypeOf.Class, create:() => ContactTypeRequest()), });