DescribeImportTasksResponse.fromJson constructor

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

Implementation

factory DescribeImportTasksResponse.fromJson(Map<String, dynamic> json) {
  return DescribeImportTasksResponse(
    nextToken: json['nextToken'] as String?,
    tasks: (json['tasks'] as List?)
        ?.whereNotNull()
        .map((e) => ImportTask.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}