wallee
Version:
TypeScript/JavaScript client for wallee
41 lines (40 loc) • 1.7 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfWebAppConfirmationResponse = instanceOfWebAppConfirmationResponse;
exports.WebAppConfirmationResponseFromJSON = WebAppConfirmationResponseFromJSON;
exports.WebAppConfirmationResponseFromJSONTyped = WebAppConfirmationResponseFromJSONTyped;
exports.WebAppConfirmationResponseToJSON = WebAppConfirmationResponseToJSON;
exports.WebAppConfirmationResponseToJSONTyped = WebAppConfirmationResponseToJSONTyped;
const Space_1 = require("./Space");
/**
* Check if a given object implements the WebAppConfirmationResponse interface.
*/
function instanceOfWebAppConfirmationResponse(value) {
return true;
}
function WebAppConfirmationResponseFromJSON(json) {
return WebAppConfirmationResponseFromJSONTyped(json, false);
}
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 : (0, Space_1.SpaceFromJSON)(json['space']),
};
}
function WebAppConfirmationResponseToJSON(json) {
return WebAppConfirmationResponseToJSONTyped(json, false);
}
function WebAppConfirmationResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'space': (0, Space_1.SpaceToJSON)(value['space']),
};
}