wallee
Version:
TypeScript/JavaScript client for wallee
38 lines (37 loc) • 1.56 kB
JavaScript
import { ScopeFromJSON, ScopeToJSON, } from './Scope';
import { CreationEntityStateFromJSON, CreationEntityStateToJSON, } from './CreationEntityState';
/**
* Check if a given object implements the ScopeSingleSignOnProvider interface.
*/
export function instanceOfScopeSingleSignOnProvider(value) {
return true;
}
export function ScopeSingleSignOnProviderFromJSON(json) {
return ScopeSingleSignOnProviderFromJSONTyped(json, false);
}
export function ScopeSingleSignOnProviderFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'signInUrl': json['signInUrl'] == null ? undefined : json['signInUrl'],
'scope': json['scope'] == null ? undefined : ScopeFromJSON(json['scope']),
'name': json['name'] == null ? undefined : json['name'],
'plannedPurgeDate': json['plannedPurgeDate'] == null ? undefined : (new Date(json['plannedPurgeDate'])),
'id': json['id'] == null ? undefined : json['id'],
'state': json['state'] == null ? undefined : CreationEntityStateFromJSON(json['state']),
'version': json['version'] == null ? undefined : json['version'],
};
}
export function ScopeSingleSignOnProviderToJSON(json) {
return ScopeSingleSignOnProviderToJSONTyped(json, false);
}
export function ScopeSingleSignOnProviderToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'scope': ScopeToJSON(value['scope']),
'state': CreationEntityStateToJSON(value['state']),
};
}