/* Options: Date: 2026-01-08 11:10:46 Version: 6.10 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://staging-api.foundrylab.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: RegisterPersonUserRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class PostOperationUnTenanted implements IPost { PostOperationUnTenanted(); PostOperationUnTenanted.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "PostOperationUnTenanted<$TResponse>"; TypeContext? context = _ctx; } class RegisterPersonUserResponse implements IConvertible { ResponseStatus? responseStatus; String? userId; String? referrerUrl; RegisterPersonUserResponse({this.responseStatus,this.userId,this.referrerUrl}); RegisterPersonUserResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); userId = json['userId']; referrerUrl = json['referrerUrl']; return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'userId': userId, 'referrerUrl': referrerUrl }; getTypeName() => "RegisterPersonUserResponse"; TypeContext? context = _ctx; } // @Route("/users/register", "POST") class RegisterPersonUserRequest extends PostOperationUnTenanted implements IReturn, IConvertible { String? firstName; String? lastName; String? emailAddress; String? password; String? timezone; bool? termsAndConditionsAccepted; RegisterPersonUserRequest({this.firstName,this.lastName,this.emailAddress,this.password,this.timezone,this.termsAndConditionsAccepted}); RegisterPersonUserRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); firstName = json['firstName']; lastName = json['lastName']; emailAddress = json['emailAddress']; password = json['password']; timezone = json['timezone']; termsAndConditionsAccepted = json['termsAndConditionsAccepted']; return this; } Map toJson() => super.toJson()..addAll({ 'firstName': firstName, 'lastName': lastName, 'emailAddress': emailAddress, 'password': password, 'timezone': timezone, 'termsAndConditionsAccepted': termsAndConditionsAccepted }); createResponse() => RegisterPersonUserResponse(); getResponseTypeName() => "RegisterPersonUserResponse"; getTypeName() => "RegisterPersonUserRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'staging_api.foundrylab.com', types: { 'PostOperationUnTenanted': TypeInfo(TypeOf.AbstractClass), 'RegisterPersonUserResponse': TypeInfo(TypeOf.Class, create:() => RegisterPersonUserResponse()), 'RegisterPersonUserRequest': TypeInfo(TypeOf.Class, create:() => RegisterPersonUserRequest()), });