/* Options: Date: 2024-05-21 21:18:27 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: ThrowType.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data,dart:collection */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; import 'dart:collection'; class ThrowTypeResponse implements IConvertible { ResponseStatus? responseStatus; ThrowTypeResponse({this.responseStatus}); ThrowTypeResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "ThrowTypeResponse"; TypeContext? context = _ctx; } // @Route("/throw/{Type}") class ThrowType implements IReturn, IConvertible, IPost { String? type; String? message; ThrowType({this.type,this.message}); ThrowType.fromJson(Map json) { fromMap(json); } fromMap(Map json) { type = json['type']; message = json['message']; return this; } Map toJson() => { 'type': type, 'message': message }; createResponse() => ThrowTypeResponse(); getResponseTypeName() => "ThrowTypeResponse"; getTypeName() => "ThrowType"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'test.servicestack.net', types: { 'ThrowTypeResponse': TypeInfo(TypeOf.Class, create:() => ThrowTypeResponse()), 'ThrowType': TypeInfo(TypeOf.Class, create:() => ThrowType()), });