DescribeFleetResponse.fromJson constructor
DescribeFleetResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DescribeFleetResponse.fromJson(Map<String, dynamic> json) {
return DescribeFleetResponse(
arn: json['arn'] as String?,
createdAt: timeStampFromJson(json['createdAt']),
lastDeploymentJob: json['lastDeploymentJob'] as String?,
lastDeploymentStatus:
(json['lastDeploymentStatus'] as String?)?.toDeploymentStatus(),
lastDeploymentTime: timeStampFromJson(json['lastDeploymentTime']),
name: json['name'] as String?,
robots: (json['robots'] as List?)
?.whereNotNull()
.map((e) => Robot.fromJson(e as Map<String, dynamic>))
.toList(),
tags: (json['tags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
);
}