/* Options: Date: 2024-05-15 03:20:23 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: TestAuth.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data,dart:collection */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; import 'dart:collection'; class TestAuthResponse implements IConvertible { String? userId; String? sessionId; String? userName; String? displayName; ResponseStatus? responseStatus; TestAuthResponse({this.userId,this.sessionId,this.userName,this.displayName,this.responseStatus}); TestAuthResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { userId = json['userId']; sessionId = json['sessionId']; userName = json['userName']; displayName = json['displayName']; responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'userId': userId, 'sessionId': sessionId, 'userName': userName, 'displayName': displayName, 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "TestAuthResponse"; TypeContext? context = _ctx; } // @Route("/testauth") class TestAuth implements IReturn, IConvertible, IPost { TestAuth(); TestAuth.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => TestAuthResponse(); getResponseTypeName() => "TestAuthResponse"; getTypeName() => "TestAuth"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'test.servicestack.net', types: { 'TestAuthResponse': TypeInfo(TypeOf.Class, create:() => TestAuthResponse()), 'TestAuth': TypeInfo(TypeOf.Class, create:() => TestAuth()), });