/* Options: Date: 2026-09-02 15:39:05 Version: 10.09 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://test.servicestack.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: TestFileUploads.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class UploadInfo implements IConvertible { String name = ""; String fileName = ""; int contentLength = 0; String contentType = ""; UploadInfo({this.name="",this.fileName="",this.contentLength=0,this.contentType=""}); UploadInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name'] ?? ""; fileName = json['fileName'] ?? ""; contentLength = json['contentLength'] ?? 0; contentType = json['contentType'] ?? ""; return this; } Map toJson() => { 'name': name, 'fileName': fileName, 'contentLength': contentLength, 'contentType': contentType }; getTypeName() => "UploadInfo"; TypeContext? context = _ctx; } class TestFileUploadsResponse implements IConvertible { int? id; String? refId; List files = []; ResponseStatus? responseStatus; TestFileUploadsResponse({this.id,this.refId,this.files=const [],this.responseStatus}); TestFileUploadsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; refId = json['refId']; files = JsonConverters.fromJson(json['files'],'List',context!) ?? []; responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'id': id, 'refId': refId, 'files': JsonConverters.toJson(files,'List',context!), 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "TestFileUploadsResponse"; TypeContext? context = _ctx; } class TestFileUploads implements IReturn, IConvertible, IPost { int? id; String? refId; TestFileUploads({this.id,this.refId}); TestFileUploads.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; refId = json['refId']; return this; } Map toJson() => { 'id': id, 'refId': refId }; createResponse() => TestFileUploadsResponse(); getResponseTypeName() => "TestFileUploadsResponse"; getTypeName() => "TestFileUploads"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'test.servicestack.net', types: { 'UploadInfo': TypeInfo(TypeOf.Class, create:() => UploadInfo()), 'TestFileUploadsResponse': TypeInfo(TypeOf.Class, create:() => TestFileUploadsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'TestFileUploads': TypeInfo(TypeOf.Class, create:() => TestFileUploads()), });