DescribeAgentsResponse.fromJson constructor

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

Implementation

factory DescribeAgentsResponse.fromJson(Map<String, dynamic> json) {
  return DescribeAgentsResponse(
    agentsInfo: (json['agentsInfo'] as List?)
        ?.whereNotNull()
        .map((e) => AgentInfo.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['nextToken'] as String?,
  );
}