DescribeTaskSetsResponse.fromJson constructor

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

Implementation

factory DescribeTaskSetsResponse.fromJson(Map<String, dynamic> json) {
  return DescribeTaskSetsResponse(
    failures: (json['failures'] as List?)
        ?.whereNotNull()
        .map((e) => Failure.fromJson(e as Map<String, dynamic>))
        .toList(),
    taskSets: (json['taskSets'] as List?)
        ?.whereNotNull()
        .map((e) => TaskSet.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}