/* Options: Date: 2024-05-16 04:08:23 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: Secured.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data,dart:collection */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; import 'dart:collection'; class SecuredResponse implements IConvertible { String? result; ResponseStatus? responseStatus; SecuredResponse({this.result,this.responseStatus}); SecuredResponse.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() => "SecuredResponse"; TypeContext? context = _ctx; } // @Route("/secured") // @ValidateRequest(Validator="IsAuthenticated") class Secured implements IReturn, IConvertible, IPost { String? name; Secured({this.name}); Secured.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; return this; } Map toJson() => { 'name': name }; createResponse() => SecuredResponse(); getResponseTypeName() => "SecuredResponse"; getTypeName() => "Secured"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'test.servicestack.net', types: { 'SecuredResponse': TypeInfo(TypeOf.Class, create:() => SecuredResponse()), 'Secured': TypeInfo(TypeOf.Class, create:() => Secured()), });