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