DescribeAgentResponse.fromJson constructor

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

Implementation

factory DescribeAgentResponse.fromJson(Map<String, dynamic> json) {
  return DescribeAgentResponse(
    agentArn: json['AgentArn'] as String?,
    creationTime: timeStampFromJson(json['CreationTime']),
    endpointType: (json['EndpointType'] as String?)?.toEndpointType(),
    lastConnectionTime: timeStampFromJson(json['LastConnectionTime']),
    name: json['Name'] as String?,
    privateLinkConfig: json['PrivateLinkConfig'] != null
        ? PrivateLinkConfig.fromJson(
            json['PrivateLinkConfig'] as Map<String, dynamic>)
        : null,
    status: (json['Status'] as String?)?.toAgentStatus(),
  );
}