/* Options: Date: 2024-12-15 20:07:16 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: CreatePersonRequest.* //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 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 CreatePersonResponse implements IConvertible { ResponseStatus? responseStatus; Person? person; CreatePersonResponse({this.responseStatus,this.person}); CreatePersonResponse.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() => "CreatePersonResponse"; TypeContext? context = _ctx; } // @Route("/persons", "POST") class CreatePersonRequest extends PostOperationUnTenanted implements IReturn, IConvertible { String? userAccountId; String? timezone; String? phoneNumber; CreatePersonRequest({this.userAccountId,this.timezone,this.phoneNumber}); CreatePersonRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); userAccountId = json['userAccountId']; timezone = json['timezone']; phoneNumber = json['phoneNumber']; return this; } Map toJson() => super.toJson()..addAll({ 'userAccountId': userAccountId, 'timezone': timezone, 'phoneNumber': phoneNumber }); createResponse() => CreatePersonResponse(); getResponseTypeName() => "CreatePersonResponse"; getTypeName() => "CreatePersonRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'staging_api.billiecart.com.au', types: { 'PostOperationUnTenanted': TypeInfo(TypeOf.AbstractClass), 'UserAccountName': TypeInfo(TypeOf.Class, create:() => UserAccountName()), 'Person': TypeInfo(TypeOf.Class, create:() => Person()), 'IIdentifiableResource': TypeInfo(TypeOf.Interface), 'CreatePersonResponse': TypeInfo(TypeOf.Class, create:() => CreatePersonResponse()), 'CreatePersonRequest': TypeInfo(TypeOf.Class, create:() => CreatePersonRequest()), });