wallee
Version:
TypeScript/JavaScript client for wallee
48 lines (47 loc) • 2.35 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfChargeFlowLevelConfiguration = instanceOfChargeFlowLevelConfiguration;
exports.ChargeFlowLevelConfigurationFromJSON = ChargeFlowLevelConfigurationFromJSON;
exports.ChargeFlowLevelConfigurationFromJSONTyped = ChargeFlowLevelConfigurationFromJSONTyped;
exports.ChargeFlowLevelConfigurationToJSON = ChargeFlowLevelConfigurationToJSON;
exports.ChargeFlowLevelConfigurationToJSONTyped = ChargeFlowLevelConfigurationToJSONTyped;
const ChargeFlow_1 = require("./ChargeFlow");
const CreationEntityState_1 = require("./CreationEntityState");
/**
* Check if a given object implements the ChargeFlowLevelConfiguration interface.
*/
function instanceOfChargeFlowLevelConfiguration(value) {
return true;
}
function ChargeFlowLevelConfigurationFromJSON(json) {
return ChargeFlowLevelConfigurationFromJSONTyped(json, false);
}
function ChargeFlowLevelConfigurationFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'linkedSpaceId': json['linkedSpaceId'] == null ? undefined : json['linkedSpaceId'],
'period': json['period'] == null ? undefined : json['period'],
'name': json['name'] == null ? undefined : json['name'],
'plannedPurgeDate': json['plannedPurgeDate'] == null ? undefined : (new Date(json['plannedPurgeDate'])),
'id': json['id'] == null ? undefined : json['id'],
'state': json['state'] == null ? undefined : (0, CreationEntityState_1.CreationEntityStateFromJSON)(json['state']),
'priority': json['priority'] == null ? undefined : json['priority'],
'type': json['type'] == null ? undefined : json['type'],
'version': json['version'] == null ? undefined : json['version'],
'flow': json['flow'] == null ? undefined : (0, ChargeFlow_1.ChargeFlowFromJSON)(json['flow']),
};
}
function ChargeFlowLevelConfigurationToJSON(json) {
return ChargeFlowLevelConfigurationToJSONTyped(json, false);
}
function ChargeFlowLevelConfigurationToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'state': (0, CreationEntityState_1.CreationEntityStateToJSON)(value['state']),
'flow': (0, ChargeFlow_1.ChargeFlowToJSON)(value['flow']),
};
}