wallee
Version:
TypeScript/JavaScript client for wallee
38 lines (37 loc) • 1.57 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfTwoFactorAuthenticationType = instanceOfTwoFactorAuthenticationType;
exports.TwoFactorAuthenticationTypeFromJSON = TwoFactorAuthenticationTypeFromJSON;
exports.TwoFactorAuthenticationTypeFromJSONTyped = TwoFactorAuthenticationTypeFromJSONTyped;
exports.TwoFactorAuthenticationTypeToJSON = TwoFactorAuthenticationTypeToJSON;
exports.TwoFactorAuthenticationTypeToJSONTyped = TwoFactorAuthenticationTypeToJSONTyped;
/**
* Check if a given object implements the TwoFactorAuthenticationType interface.
*/
function instanceOfTwoFactorAuthenticationType(value) {
return true;
}
function TwoFactorAuthenticationTypeFromJSON(json) {
return TwoFactorAuthenticationTypeFromJSONTyped(json, false);
}
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'],
};
}
function TwoFactorAuthenticationTypeToJSON(json) {
return TwoFactorAuthenticationTypeToJSONTyped(json, false);
}
function TwoFactorAuthenticationTypeToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}