/* Options: Date: 2026-09-19 23:12:41 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: ThrowHttpError.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; // @Route("/throwhttperror/{Status}") class ThrowHttpError implements IConvertible, IPost { int? status; String message = ""; ThrowHttpError({this.status,this.message=""}); ThrowHttpError.fromJson(Map json) { fromMap(json); } fromMap(Map json) { status = json['status']; message = json['message'] ?? ""; return this; } Map toJson() => { 'status': status, 'message': message }; getTypeName() => "ThrowHttpError"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'test.servicestack.net', types: { 'ThrowHttpError': TypeInfo(TypeOf.Class, create:() => ThrowHttpError()), });