wallee
Version:
TypeScript/JavaScript client for wallee
39 lines (38 loc) • 1.49 kB
JavaScript
/**
* Check if a given object implements the SubscriptionProductComponentGroupUpdate interface.
*/
export function instanceOfSubscriptionProductComponentGroupUpdate(value) {
if (!('version' in value) || value['version'] === undefined)
return false;
return true;
}
export function SubscriptionProductComponentGroupUpdateFromJSON(json) {
return SubscriptionProductComponentGroupUpdateFromJSONTyped(json, false);
}
export function SubscriptionProductComponentGroupUpdateFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'productVersion': json['productVersion'] == null ? undefined : json['productVersion'],
'sortOrder': json['sortOrder'] == null ? undefined : json['sortOrder'],
'name': json['name'] == null ? undefined : json['name'],
'optional': json['optional'] == null ? undefined : json['optional'],
'version': json['version'],
};
}
export function SubscriptionProductComponentGroupUpdateToJSON(json) {
return SubscriptionProductComponentGroupUpdateToJSONTyped(json, false);
}
export function SubscriptionProductComponentGroupUpdateToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'productVersion': value['productVersion'],
'sortOrder': value['sortOrder'],
'name': value['name'],
'optional': value['optional'],
'version': value['version'],
};
}