/* Options: Date: 2024-12-22 21:53:02 Version: 8.51 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazor-gallery.servicestack.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: HelloSecure.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class HelloResponse implements IConvertible { String? result; ResponseStatus? responseStatus; HelloResponse({this.result,this.responseStatus}); HelloResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { result = json['result']; responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'result': result, 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "HelloResponse"; TypeContext? context = _ctx; } // @Route("/hellosecure/{Name}") // @ValidateRequest(Validator="IsAuthenticated") class HelloSecure implements IReturn, IGet, IConvertible { String? name; HelloSecure({this.name}); HelloSecure.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; return this; } Map toJson() => { 'name': name }; createResponse() => HelloResponse(); getResponseTypeName() => "HelloResponse"; getTypeName() => "HelloSecure"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazor_gallery.servicestack.net', types: { 'HelloResponse': TypeInfo(TypeOf.Class, create:() => HelloResponse()), 'HelloSecure': TypeInfo(TypeOf.Class, create:() => HelloSecure()), });