DescribeTaskDefinitionResponse.fromJson constructor

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

Implementation

factory DescribeTaskDefinitionResponse.fromJson(Map<String, dynamic> json) {
  return DescribeTaskDefinitionResponse(
    tags: (json['tags'] as List?)
        ?.whereNotNull()
        .map((e) => Tag.fromJson(e as Map<String, dynamic>))
        .toList(),
    taskDefinition: json['taskDefinition'] != null
        ? TaskDefinition.fromJson(
            json['taskDefinition'] as Map<String, dynamic>)
        : null,
  );
}