DataSourceSyncJob.fromJson constructor

DataSourceSyncJob.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory DataSourceSyncJob.fromJson(Map<String, dynamic> json) {
  return DataSourceSyncJob(
    dataSourceErrorCode: json['DataSourceErrorCode'] as String?,
    endTime: timeStampFromJson(json['EndTime']),
    errorCode: (json['ErrorCode'] as String?)?.toErrorCode(),
    errorMessage: json['ErrorMessage'] as String?,
    executionId: json['ExecutionId'] as String?,
    metrics: json['Metrics'] != null
        ? DataSourceSyncJobMetrics.fromJson(
            json['Metrics'] as Map<String, dynamic>)
        : null,
    startTime: timeStampFromJson(json['StartTime']),
    status: (json['Status'] as String?)?.toDataSourceSyncJobStatus(),
  );
}