/* Options: Date: 2024-05-17 05:48:03 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://test.servicestack.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SendJson.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data,dart:collection */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; import 'dart:collection'; // @Route("/sendjson") class SendJson implements IReturn, IConvertible, IPost { int? id; String? name; Uint8List? requestStream; SendJson({this.id,this.name,this.requestStream}); SendJson.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; requestStream = JsonConverters.fromJson(json['requestStream'],'Uint8List',context!); return this; } Map toJson() => { 'id': id, 'name': name, 'requestStream': JsonConverters.toJson(requestStream,'Uint8List',context!) }; createResponse() => ""; getResponseTypeName() => "String"; getTypeName() => "SendJson"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'test.servicestack.net', types: { 'SendJson': TypeInfo(TypeOf.Class, create:() => SendJson()), 'Uint8List': TypeInfo(TypeOf.Class, create:() => Uint8List(0)), });