UNPKG

wallee

Version:
41 lines (40 loc) 1.93 kB
import { TwoFactorAuthenticationTypeFromJSON, TwoFactorAuthenticationTypeToJSON, } from './TwoFactorAuthenticationType'; /** * Check if a given object implements the HumanUser interface. */ export function instanceOfHumanUser(value) { return true; } export function HumanUserFromJSON(json) { return HumanUserFromJSONTyped(json, false); } export function HumanUserFromJSONTyped(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'], 'emailAddressVerified': json['emailAddressVerified'] == null ? undefined : json['emailAddressVerified'], 'scope': json['scope'] == null ? undefined : json['scope'], 'timeZone': json['timeZone'] == null ? undefined : json['timeZone'], 'language': json['language'] == null ? undefined : json['language'], 'twoFactorType': json['twoFactorType'] == null ? undefined : TwoFactorAuthenticationTypeFromJSON(json['twoFactorType']), 'mobilePhoneVerified': json['mobilePhoneVerified'] == null ? undefined : json['mobilePhoneVerified'], 'primaryAccount': json['primaryAccount'] == null ? undefined : json['primaryAccount'], 'lastname': json['lastname'] == null ? undefined : json['lastname'], }; } export function HumanUserToJSON(json) { return HumanUserToJSONTyped(json, false); } export function HumanUserToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'twoFactorType': TwoFactorAuthenticationTypeToJSON(value['twoFactorType']), }; }