wallee
Version:
TypeScript/JavaScript client for wallee
39 lines (38 loc) • 1.45 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfUserAccountRole = instanceOfUserAccountRole;
exports.UserAccountRoleFromJSON = UserAccountRoleFromJSON;
exports.UserAccountRoleFromJSONTyped = UserAccountRoleFromJSONTyped;
exports.UserAccountRoleToJSON = UserAccountRoleToJSON;
exports.UserAccountRoleToJSONTyped = UserAccountRoleToJSONTyped;
/**
* Check if a given object implements the UserAccountRole interface.
*/
function instanceOfUserAccountRole(value) {
return true;
}
function UserAccountRoleFromJSON(json) {
return UserAccountRoleFromJSONTyped(json, false);
}
function UserAccountRoleFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'role': json['role'] == null ? undefined : json['role'],
'id': json['id'] == null ? undefined : json['id'],
'appliesOnSubAccount': json['appliesOnSubAccount'] == null ? undefined : json['appliesOnSubAccount'],
'user': json['user'] == null ? undefined : json['user'],
'version': json['version'] == null ? undefined : json['version'],
'account': json['account'] == null ? undefined : json['account'],
};
}
function UserAccountRoleToJSON(json) {
return UserAccountRoleToJSONTyped(json, false);
}
function UserAccountRoleToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}