/* Options: Date: 2024-12-15 20:30:36 Version: 6.10 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://staging-api.billiecart.com.au //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: UpdatePersonRequest.* //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 UserAccountName implements IConvertible { String? firstName; String? lastName; UserAccountName({this.firstName,this.lastName}); UserAccountName.fromJson(Map json) { fromMap(json); } fromMap(Map json) { firstName = json['firstName']; lastName = json['lastName']; return this; } Map toJson() => { 'firstName': firstName, 'lastName': lastName }; getTypeName() => "UserAccountName"; TypeContext? context = _ctx; } class Person implements IIdentifiableResource, IConvertible { UserAccountName? name; String? displayName; String? email; String? phoneNumber; String? timezone; String? defaultOrganisationId; String? id; Person({this.name,this.displayName,this.email,this.phoneNumber,this.timezone,this.defaultOrganisationId,this.id}); Person.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = JsonConverters.fromJson(json['name'],'UserAccountName',context!); displayName = json['displayName']; email = json['email']; phoneNumber = json['phoneNumber']; timezone = json['timezone']; defaultOrganisationId = json['defaultOrganisationId']; id = json['id']; return this; } Map toJson() => { 'name': JsonConverters.toJson(name,'UserAccountName',context!), 'displayName': displayName, 'email': email, 'phoneNumber': phoneNumber, 'timezone': timezone, 'defaultOrganisationId': defaultOrganisationId, 'id': id }; getTypeName() => "Person"; TypeContext? context = _ctx; } abstract class IIdentifiableResource { String? id; } class UpdatePersonResponse implements IConvertible { ResponseStatus? responseStatus; Person? person; UpdatePersonResponse({this.responseStatus,this.person}); UpdatePersonResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); person = JsonConverters.fromJson(json['person'],'Person',context!); return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'person': JsonConverters.toJson(person,'Person',context!) }; getTypeName() => "UpdatePersonResponse"; TypeContext? context = _ctx; } // @Route("/persons/{Id}", "PUT,PATCH") class UpdatePersonRequest extends PutPatchOperationUnTenanted implements IReturn, IConvertible { String? id; String? phoneNumber; String? timezone; UpdatePersonRequest({this.id,this.phoneNumber,this.timezone}); UpdatePersonRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; phoneNumber = json['phoneNumber']; timezone = json['timezone']; return this; } Map toJson() => super.toJson()..addAll({ 'id': id, 'phoneNumber': phoneNumber, 'timezone': timezone }); createResponse() => UpdatePersonResponse(); getResponseTypeName() => "UpdatePersonResponse"; getTypeName() => "UpdatePersonRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'staging_api.billiecart.com.au', types: { 'PutPatchOperationUnTenanted': TypeInfo(TypeOf.AbstractClass), 'UserAccountName': TypeInfo(TypeOf.Class, create:() => UserAccountName()), 'Person': TypeInfo(TypeOf.Class, create:() => Person()), 'IIdentifiableResource': TypeInfo(TypeOf.Interface), 'UpdatePersonResponse': TypeInfo(TypeOf.Class, create:() => UpdatePersonResponse()), 'UpdatePersonRequest': TypeInfo(TypeOf.Class, create:() => UpdatePersonRequest()), });