UNPKG

wallee

Version:
33 lines (32 loc) 1.3 kB
/** * Check if a given object implements the AnalyticsQueryExecutionRequest interface. */ export function instanceOfAnalyticsQueryExecutionRequest(value) { return true; } export function AnalyticsQueryExecutionRequestFromJSON(json) { return AnalyticsQueryExecutionRequestFromJSONTyped(json, false); } export function AnalyticsQueryExecutionRequestFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'sftpDispatchSettingsId': json['sftpDispatchSettingsId'] == null ? undefined : json['sftpDispatchSettingsId'], 'sftpDispatchResultFileRenamePattern': json['sftpDispatchResultFileRenamePattern'] == null ? undefined : json['sftpDispatchResultFileRenamePattern'], 'sql': json['sql'] == null ? undefined : json['sql'], }; } export function AnalyticsQueryExecutionRequestToJSON(json) { return AnalyticsQueryExecutionRequestToJSONTyped(json, false); } export function AnalyticsQueryExecutionRequestToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'sftpDispatchSettingsId': value['sftpDispatchSettingsId'], 'sftpDispatchResultFileRenamePattern': value['sftpDispatchResultFileRenamePattern'], 'sql': value['sql'], }; }