/* Options: Date: 2025-05-12 19:09:02 Version: 8.53 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,dart:typed_data,dart:collection */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; import 'dart:collection'; class UploadInfo implements IConvertible { String? name; String? fileName; int? contentLength; String? contentType; UploadInfo({this.name,this.fileName,this.contentLength,this.contentType}); UploadInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; fileName = json['fileName']; contentLength = json['contentLength']; 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,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()), });