GetImportJobResponse.fromJson constructor

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

Implementation

factory GetImportJobResponse.fromJson(Map<String, dynamic> json) {
  return GetImportJobResponse(
    completedTimestamp: timeStampFromJson(json['CompletedTimestamp']),
    createdTimestamp: timeStampFromJson(json['CreatedTimestamp']),
    failedRecordsCount: json['FailedRecordsCount'] as int?,
    failureInfo: json['FailureInfo'] != null
        ? FailureInfo.fromJson(json['FailureInfo'] as Map<String, dynamic>)
        : null,
    importDataSource: json['ImportDataSource'] != null
        ? ImportDataSource.fromJson(
            json['ImportDataSource'] as Map<String, dynamic>)
        : null,
    importDestination: json['ImportDestination'] != null
        ? ImportDestination.fromJson(
            json['ImportDestination'] as Map<String, dynamic>)
        : null,
    jobId: json['JobId'] as String?,
    jobStatus: (json['JobStatus'] as String?)?.toJobStatus(),
    processedRecordsCount: json['ProcessedRecordsCount'] as int?,
  );
}