wallee
Version:
TypeScript/JavaScript client for wallee
31 lines (30 loc) • 1.09 kB
JavaScript
/**
* Check if a given object implements the TwoFactorAuthenticationType interface.
*/
export function instanceOfTwoFactorAuthenticationType(value) {
return true;
}
export function TwoFactorAuthenticationTypeFromJSON(json) {
return TwoFactorAuthenticationTypeFromJSONTyped(json, false);
}
export function TwoFactorAuthenticationTypeFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'feature': json['feature'] == null ? undefined : json['feature'],
'icon': json['icon'] == null ? undefined : json['icon'],
'name': json['name'] == null ? undefined : json['name'],
'description': json['description'] == null ? undefined : json['description'],
'id': json['id'] == null ? undefined : json['id'],
};
}
export function TwoFactorAuthenticationTypeToJSON(json) {
return TwoFactorAuthenticationTypeToJSONTyped(json, false);
}
export function TwoFactorAuthenticationTypeToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}