Robot.fromJson constructor
Implementation
factory Robot.fromJson(Map<String, dynamic> json) {
return Robot(
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(),
);
}