UNPKG

wallee

Version:
37 lines (36 loc) 1.6 kB
import { ConnectorInvocationStageFromJSON, ConnectorInvocationStageToJSON, } from './ConnectorInvocationStage'; /** * Check if a given object implements the ConnectorInvocation interface. */ export function instanceOfConnectorInvocation(value) { return true; } export function ConnectorInvocationFromJSON(json) { return ConnectorInvocationFromJSONTyped(json, false); } export 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 : 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'], }; } export function ConnectorInvocationToJSON(json) { return ConnectorInvocationToJSONTyped(json, false); } export function ConnectorInvocationToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'stage': ConnectorInvocationStageToJSON(value['stage']), }; }