UNPKG

wallee

Version:
31 lines (30 loc) 1.21 kB
/** * Check if a given object implements the SubscriptionComponentReferenceConfiguration interface. */ export function instanceOfSubscriptionComponentReferenceConfiguration(value) { return true; } export function SubscriptionComponentReferenceConfigurationFromJSON(json) { return SubscriptionComponentReferenceConfigurationFromJSONTyped(json, false); } export function SubscriptionComponentReferenceConfigurationFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'quantity': json['quantity'] == null ? undefined : json['quantity'], 'productComponentReferenceId': json['productComponentReferenceId'] == null ? undefined : json['productComponentReferenceId'], }; } export function SubscriptionComponentReferenceConfigurationToJSON(json) { return SubscriptionComponentReferenceConfigurationToJSONTyped(json, false); } export function SubscriptionComponentReferenceConfigurationToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'quantity': value['quantity'], 'productComponentReferenceId': value['productComponentReferenceId'], }; }