/* Options: Date: 2024-12-29 02:30:48 Version: 8.22 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://data.regent-college.edu //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: DirectoryImageUploadRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; // @Route("/directory/{uuid}/image/upload", "POST") class DirectoryImageUploadRequest implements IReturn, IConvertible, IPost { Uint8List? file; String? file_base64; String? uuid; String? contentType; DirectoryImageUploadRequest({this.file,this.file_base64,this.uuid,this.contentType}); DirectoryImageUploadRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { file = JsonConverters.fromJson(json['file'],'Uint8List',context!); file_base64 = json['file_base64']; uuid = json['uuid']; contentType = json['contentType']; return this; } Map toJson() => { 'file': JsonConverters.toJson(file,'Uint8List',context!), 'file_base64': file_base64, 'uuid': uuid, 'contentType': contentType }; createResponse() => ResponseStatus(); getResponseTypeName() => "ResponseStatus"; getTypeName() => "DirectoryImageUploadRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: { 'DirectoryImageUploadRequest': TypeInfo(TypeOf.Class, create:() => DirectoryImageUploadRequest()), 'Uint8List': TypeInfo(TypeOf.Class, create:() => Uint8List(0)), });