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