UNPKG

wallee

Version:
49 lines (48 loc) 2.67 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfSubscriptionPeriodBill = instanceOfSubscriptionPeriodBill; exports.SubscriptionPeriodBillFromJSON = SubscriptionPeriodBillFromJSON; exports.SubscriptionPeriodBillFromJSONTyped = SubscriptionPeriodBillFromJSONTyped; exports.SubscriptionPeriodBillToJSON = SubscriptionPeriodBillToJSON; exports.SubscriptionPeriodBillToJSONTyped = SubscriptionPeriodBillToJSONTyped; const SubscriptionPeriodBillState_1 = require("./SubscriptionPeriodBillState"); const SubscriptionVersion_1 = require("./SubscriptionVersion"); /** * Check if a given object implements the SubscriptionPeriodBill interface. */ function instanceOfSubscriptionPeriodBill(value) { return true; } function SubscriptionPeriodBillFromJSON(json) { return SubscriptionPeriodBillFromJSONTyped(json, false); } function SubscriptionPeriodBillFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'linkedSpaceId': json['linkedSpaceId'] == null ? undefined : json['linkedSpaceId'], 'periodStartDate': json['periodStartDate'] == null ? undefined : (new Date(json['periodStartDate'])), 'plannedPurgeDate': json['plannedPurgeDate'] == null ? undefined : (new Date(json['plannedPurgeDate'])), 'subscriptionVersion': json['subscriptionVersion'] == null ? undefined : (0, SubscriptionVersion_1.SubscriptionVersionFromJSON)(json['subscriptionVersion']), 'effectivePeriodEndDate': json['effectivePeriodEndDate'] == null ? undefined : (new Date(json['effectivePeriodEndDate'])), 'language': json['language'] == null ? undefined : json['language'], 'id': json['id'] == null ? undefined : json['id'], 'state': json['state'] == null ? undefined : (0, SubscriptionPeriodBillState_1.SubscriptionPeriodBillStateFromJSON)(json['state']), 'createdOn': json['createdOn'] == null ? undefined : (new Date(json['createdOn'])), 'plannedPeriodEndDate': json['plannedPeriodEndDate'] == null ? undefined : (new Date(json['plannedPeriodEndDate'])), 'version': json['version'] == null ? undefined : json['version'], }; } function SubscriptionPeriodBillToJSON(json) { return SubscriptionPeriodBillToJSONTyped(json, false); } function SubscriptionPeriodBillToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'subscriptionVersion': (0, SubscriptionVersion_1.SubscriptionVersionToJSON)(value['subscriptionVersion']), 'state': (0, SubscriptionPeriodBillState_1.SubscriptionPeriodBillStateToJSON)(value['state']), }; }