/* Options: Date: 2025-09-01 05:57:42 Version: 6.10 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://foundrystage-api-app.azurewebsites.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: ChangeEmailAddressRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class PutPatchOperationUnTenanted implements IPatch, IPut { PutPatchOperationUnTenanted(); PutPatchOperationUnTenanted.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "PutPatchOperationUnTenanted<$TResponse>"; TypeContext? context = _ctx; } class PersonName implements IConvertible { String? firstName; String? lastName; PersonName({this.firstName,this.lastName}); PersonName.fromJson(Map json) { fromMap(json); } fromMap(Map json) { firstName = json['firstName']; lastName = json['lastName']; return this; } Map toJson() => { 'firstName': firstName, 'lastName': lastName }; getTypeName() => "PersonName"; TypeContext? context = _ctx; } class ProfileBasic implements IIdentifiableResource, IConvertible { PersonName? name; String? displayName; String? emailAddress; String? phoneNumber; String? timezone; String? id; ProfileBasic({this.name,this.displayName,this.emailAddress,this.phoneNumber,this.timezone,this.id}); ProfileBasic.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = JsonConverters.fromJson(json['name'],'PersonName',context!); displayName = json['displayName']; emailAddress = json['emailAddress']; phoneNumber = json['phoneNumber']; timezone = json['timezone']; id = json['id']; return this; } Map toJson() => { 'name': JsonConverters.toJson(name,'PersonName',context!), 'displayName': displayName, 'emailAddress': emailAddress, 'phoneNumber': phoneNumber, 'timezone': timezone, 'id': id }; getTypeName() => "ProfileBasic"; TypeContext? context = _ctx; } class Profile extends ProfileBasic implements IConvertible { String? defaultOrganisationId; Profile({this.defaultOrganisationId}); Profile.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); defaultOrganisationId = json['defaultOrganisationId']; return this; } Map toJson() => super.toJson()..addAll({ 'defaultOrganisationId': defaultOrganisationId }); getTypeName() => "Profile"; TypeContext? context = _ctx; } abstract class IIdentifiableResource { String? id; } class UpdateProfileResponse implements IConvertible { ResponseStatus? responseStatus; Profile? profile; UpdateProfileResponse({this.responseStatus,this.profile}); UpdateProfileResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); profile = JsonConverters.fromJson(json['profile'],'Profile',context!); return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'profile': JsonConverters.toJson(profile,'Profile',context!) }; getTypeName() => "UpdateProfileResponse"; TypeContext? context = _ctx; } // @Route("/profile/{Id}/email", "PUT,PATCH") class ChangeEmailAddressRequest extends PutPatchOperationUnTenanted implements IReturn, IConvertible { String? id; String? emailAddress; ChangeEmailAddressRequest({this.id,this.emailAddress}); ChangeEmailAddressRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; emailAddress = json['emailAddress']; return this; } Map toJson() => super.toJson()..addAll({ 'id': id, 'emailAddress': emailAddress }); createResponse() => UpdateProfileResponse(); getResponseTypeName() => "UpdateProfileResponse"; getTypeName() => "ChangeEmailAddressRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'foundrystage_api_app.azurewebsites.net', types: { 'PutPatchOperationUnTenanted': TypeInfo(TypeOf.AbstractClass), 'PersonName': TypeInfo(TypeOf.Class, create:() => PersonName()), 'ProfileBasic': TypeInfo(TypeOf.Class, create:() => ProfileBasic()), 'Profile': TypeInfo(TypeOf.Class, create:() => Profile()), 'IIdentifiableResource': TypeInfo(TypeOf.Interface), 'UpdateProfileResponse': TypeInfo(TypeOf.Class, create:() => UpdateProfileResponse()), 'ChangeEmailAddressRequest': TypeInfo(TypeOf.Class, create:() => ChangeEmailAddressRequest()), });