DescribeRobotResponse.fromJson constructor

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

Implementation

factory DescribeRobotResponse.fromJson(Map<String, dynamic> json) {
  return DescribeRobotResponse(
    architecture: (json['architecture'] as String?)?.toArchitecture(),
    arn: json['arn'] as String?,
    createdAt: timeStampFromJson(json['createdAt']),
    fleetArn: json['fleetArn'] as String?,
    greengrassGroupId: json['greengrassGroupId'] as String?,
    lastDeploymentJob: json['lastDeploymentJob'] as String?,
    lastDeploymentTime: timeStampFromJson(json['lastDeploymentTime']),
    name: json['name'] as String?,
    status: (json['status'] as String?)?.toRobotStatus(),
    tags: (json['tags'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
  );
}