/* Options: Date: 2025-12-06 05:25:55 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: PDFDocumentRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class PDFDocument implements IConvertible { String? DocumentId; Uint8List? PDFDocument = []; DateTime? DateCreated; int? CardId; PDFDocument({this.DocumentId,this.PDFDocument,this.DateCreated,this.CardId}); PDFDocument.fromJson(Map json) { fromMap(json); } fromMap(Map json) { DocumentId = json['DocumentId']; PDFDocument = JsonConverters.fromJson(json['PDFDocument'],'Uint8List',context!); DateCreated = JsonConverters.fromJson(json['DateCreated'],'DateTime',context!); CardId = json['CardId']; return this; } Map toJson() => { 'DocumentId': DocumentId, 'PDFDocument': JsonConverters.toJson(PDFDocument,'Uint8List',context!), 'DateCreated': JsonConverters.toJson(DateCreated,'DateTime',context!), 'CardId': CardId }; getTypeName() => "PDFDocument"; TypeContext? context = _ctx; } class PDFDocumentResponse implements IConvertible { ResponseStatus? ResponseStatus; List? PDFDocument = []; PDFDocumentResponse({this.ResponseStatus,this.PDFDocument}); PDFDocumentResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); PDFDocument = JsonConverters.fromJson(json['PDFDocument'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'PDFDocument': JsonConverters.toJson(PDFDocument,'List',context!) }; getTypeName() => "PDFDocumentResponse"; TypeContext? context = _ctx; } // @Route("/v1/PDFDocument/{DocumentId}", "GET,OPTIONS") // @Route("/v1/PDFDocument/ByCard/{CardId}", "GET,OPTIONS") class PDFDocumentRequest implements IReturn, IConvertible, IGet { int? CardId; String? DocumentId; List? PDFDocument = []; PDFDocumentRequest({this.CardId,this.DocumentId,this.PDFDocument}); PDFDocumentRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CardId = json['CardId']; DocumentId = json['DocumentId']; PDFDocument = JsonConverters.fromJson(json['PDFDocument'],'List',context!); return this; } Map toJson() => { 'CardId': CardId, 'DocumentId': DocumentId, 'PDFDocument': JsonConverters.toJson(PDFDocument,'List',context!) }; createResponse() => PDFDocumentResponse(); getResponseTypeName() => "PDFDocumentResponse"; getTypeName() => "PDFDocumentRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'PDFDocument': TypeInfo(TypeOf.Class, create:() => PDFDocument()), 'Uint8List': TypeInfo(TypeOf.Class, create:() => Uint8List(0)), 'PDFDocumentResponse': TypeInfo(TypeOf.Class, create:() => PDFDocumentResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'PDFDocumentRequest': TypeInfo(TypeOf.Class, create:() => PDFDocumentRequest()), });