UNPKG

wallee

Version:
44 lines (43 loc) 2.02 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfConnectorInvocation = instanceOfConnectorInvocation; exports.ConnectorInvocationFromJSON = ConnectorInvocationFromJSON; exports.ConnectorInvocationFromJSONTyped = ConnectorInvocationFromJSONTyped; exports.ConnectorInvocationToJSON = ConnectorInvocationToJSON; exports.ConnectorInvocationToJSONTyped = ConnectorInvocationToJSONTyped; const ConnectorInvocationStage_1 = require("./ConnectorInvocationStage"); /** * Check if a given object implements the ConnectorInvocation interface. */ function instanceOfConnectorInvocation(value) { return true; } function ConnectorInvocationFromJSON(json) { return ConnectorInvocationFromJSONTyped(json, false); } function ConnectorInvocationFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'linkedSpaceId': json['linkedSpaceId'] == null ? undefined : json['linkedSpaceId'], 'timeTookInMilliseconds': json['timeTookInMilliseconds'] == null ? undefined : json['timeTookInMilliseconds'], 'stage': json['stage'] == null ? undefined : (0, ConnectorInvocationStage_1.ConnectorInvocationStageFromJSON)(json['stage']), 'plannedPurgeDate': json['plannedPurgeDate'] == null ? undefined : (new Date(json['plannedPurgeDate'])), 'id': json['id'] == null ? undefined : json['id'], 'createdOn': json['createdOn'] == null ? undefined : (new Date(json['createdOn'])), 'version': json['version'] == null ? undefined : json['version'], 'transaction': json['transaction'] == null ? undefined : json['transaction'], }; } function ConnectorInvocationToJSON(json) { return ConnectorInvocationToJSONTyped(json, false); } function ConnectorInvocationToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'stage': (0, ConnectorInvocationStage_1.ConnectorInvocationStageToJSON)(value['stage']), }; }