wallee
Version:
TypeScript/JavaScript client for wallee
34 lines (33 loc) • 1.23 kB
JavaScript
import { SpaceFromJSON, SpaceToJSON, } from './Space';
/**
* Check if a given object implements the WebAppConfirmationResponse interface.
*/
export function instanceOfWebAppConfirmationResponse(value) {
return true;
}
export function WebAppConfirmationResponseFromJSON(json) {
return WebAppConfirmationResponseFromJSONTyped(json, false);
}
export function WebAppConfirmationResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'accessToken': json['access_token'] == null ? undefined : json['access_token'],
'scope': json['scope'] == null ? undefined : json['scope'],
'state': json['state'] == null ? undefined : json['state'],
'tokenType': json['token_type'] == null ? undefined : json['token_type'],
'space': json['space'] == null ? undefined : SpaceFromJSON(json['space']),
};
}
export function WebAppConfirmationResponseToJSON(json) {
return WebAppConfirmationResponseToJSONTyped(json, false);
}
export function WebAppConfirmationResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'space': SpaceToJSON(value['space']),
};
}