ExportTask.fromJson constructor

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

Implementation

factory ExportTask.fromJson(Map<String, dynamic> json) {
  return ExportTask(
    destination: json['destination'] as String?,
    destinationPrefix: json['destinationPrefix'] as String?,
    executionInfo: json['executionInfo'] != null
        ? ExportTaskExecutionInfo.fromJson(
            json['executionInfo'] as Map<String, dynamic>)
        : null,
    from: json['from'] as int?,
    logGroupName: json['logGroupName'] as String?,
    status: json['status'] != null
        ? ExportTaskStatus.fromJson(json['status'] as Map<String, dynamic>)
        : null,
    taskId: json['taskId'] as String?,
    taskName: json['taskName'] as String?,
    to: json['to'] as int?,
  );
}