/* Options: Date: 2024-10-18 04:17:20 Version: 6.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://digiofficeapigateway.deltares.nl/api //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetDocumentFileDetails.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class DocumentFile implements IConvertible { String? Name; String? Extension; int? Size; Uint8List? Content; DocumentFile({this.Name,this.Extension,this.Size,this.Content}); DocumentFile.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Name = json['Name']; Extension = json['Extension']; Size = json['Size']; Content = JsonConverters.fromJson(json['Content'],'Uint8List',context!); return this; } Map toJson() => { 'Name': Name, 'Extension': Extension, 'Size': Size, 'Content': JsonConverters.toJson(Content,'Uint8List',context!) }; getTypeName() => "DocumentFile"; TypeContext? context = _ctx; } // @Route("/documents/{DocumentID}/filedetails", "GET") class GetDocumentFileDetails implements IReturn, IConvertible { String? DocumentID; bool? IncludeContent; String? DocumentFieldID; GetDocumentFileDetails({this.DocumentID,this.IncludeContent,this.DocumentFieldID}); GetDocumentFileDetails.fromJson(Map json) { fromMap(json); } fromMap(Map json) { DocumentID = json['DocumentID']; IncludeContent = json['IncludeContent']; DocumentFieldID = json['DocumentFieldID']; return this; } Map toJson() => { 'DocumentID': DocumentID, 'IncludeContent': IncludeContent, 'DocumentFieldID': DocumentFieldID }; createResponse() => DocumentFile(); getResponseTypeName() => "DocumentFile"; getTypeName() => "GetDocumentFileDetails"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'digiofficeapigateway.deltares.nl', types: { 'DocumentFile': TypeInfo(TypeOf.Class, create:() => DocumentFile()), 'Uint8List': TypeInfo(TypeOf.Class, create:() => Uint8List(0)), 'GetDocumentFileDetails': TypeInfo(TypeOf.Class, create:() => GetDocumentFileDetails()), });