UNPKG

wallee

Version:
46 lines (45 loc) 1.98 kB
import { CreationEntityStateFromJSON, CreationEntityStateToJSON, } from './CreationEntityState'; /** * Check if a given object implements the HumanUserCreate interface. */ export function instanceOfHumanUserCreate(value) { return true; } export function HumanUserCreateFromJSON(json) { return HumanUserCreateFromJSONTyped(json, false); } export function HumanUserCreateFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'mobilePhoneNumber': json['mobilePhoneNumber'] == null ? undefined : json['mobilePhoneNumber'], 'twoFactorEnabled': json['twoFactorEnabled'] == null ? undefined : json['twoFactorEnabled'], 'emailAddress': json['emailAddress'] == null ? undefined : json['emailAddress'], 'firstname': json['firstname'] == null ? undefined : json['firstname'], 'timeZone': json['timeZone'] == null ? undefined : json['timeZone'], 'language': json['language'] == null ? undefined : json['language'], 'state': json['state'] == null ? undefined : CreationEntityStateFromJSON(json['state']), 'lastname': json['lastname'] == null ? undefined : json['lastname'], 'primaryAccount': json['primaryAccount'] == null ? undefined : json['primaryAccount'], }; } export function HumanUserCreateToJSON(json) { return HumanUserCreateToJSONTyped(json, false); } export function HumanUserCreateToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'mobilePhoneNumber': value['mobilePhoneNumber'], 'twoFactorEnabled': value['twoFactorEnabled'], 'emailAddress': value['emailAddress'], 'firstname': value['firstname'], 'timeZone': value['timeZone'], 'language': value['language'], 'state': CreationEntityStateToJSON(value['state']), 'lastname': value['lastname'], 'primaryAccount': value['primaryAccount'], }; }