AgentPreview.fromJson constructor

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

Implementation

factory AgentPreview.fromJson(Map<String, dynamic> json) {
  return AgentPreview(
    agentId: json['agentId'] as String,
    agentHealth: (json['agentHealth'] as String?)?.toAgentHealth(),
    agentVersion: json['agentVersion'] as String?,
    autoScalingGroup: json['autoScalingGroup'] as String?,
    hostname: json['hostname'] as String?,
    ipv4Address: json['ipv4Address'] as String?,
    kernelVersion: json['kernelVersion'] as String?,
    operatingSystem: json['operatingSystem'] as String?,
  );
}