ImportTask.fromJson constructor

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

Implementation

factory ImportTask.fromJson(Map<String, dynamic> json) {
  return ImportTask(
    applicationImportFailure: json['applicationImportFailure'] as int?,
    applicationImportSuccess: json['applicationImportSuccess'] as int?,
    clientRequestToken: json['clientRequestToken'] as String?,
    errorsAndFailedEntriesZip: json['errorsAndFailedEntriesZip'] as String?,
    importCompletionTime: timeStampFromJson(json['importCompletionTime']),
    importDeletedTime: timeStampFromJson(json['importDeletedTime']),
    importRequestTime: timeStampFromJson(json['importRequestTime']),
    importTaskId: json['importTaskId'] as String?,
    importUrl: json['importUrl'] as String?,
    name: json['name'] as String?,
    serverImportFailure: json['serverImportFailure'] as int?,
    serverImportSuccess: json['serverImportSuccess'] as int?,
    status: (json['status'] as String?)?.toImportStatus(),
  );
}