wallee
Version:
TypeScript/JavaScript client for wallee
33 lines (32 loc) • 1.21 kB
JavaScript
/**
* Check if a given object implements the SingleSignOnUser interface.
*/
export function instanceOfSingleSignOnUser(value) {
return true;
}
export function SingleSignOnUserFromJSON(json) {
return SingleSignOnUserFromJSONTyped(json, false);
}
export function SingleSignOnUserFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'firstname': json['firstname'] == null ? undefined : json['firstname'],
'provider': json['provider'] == null ? undefined : json['provider'],
'scope': json['scope'] == null ? undefined : json['scope'],
'timeZone': json['timeZone'] == null ? undefined : json['timeZone'],
'language': json['language'] == null ? undefined : json['language'],
'primaryAccount': json['primaryAccount'] == null ? undefined : json['primaryAccount'],
'lastname': json['lastname'] == null ? undefined : json['lastname'],
};
}
export function SingleSignOnUserToJSON(json) {
return SingleSignOnUserToJSONTyped(json, false);
}
export function SingleSignOnUserToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}