PreviewAgentsResponse.fromJson constructor
Implementation
factory PreviewAgentsResponse.fromJson(Map<String, dynamic> json) {
return PreviewAgentsResponse(
agentPreviews: (json['agentPreviews'] as List)
.whereNotNull()
.map((e) => AgentPreview.fromJson(e as Map<String, dynamic>))
.toList(),
nextToken: json['nextToken'] as String?,
);
}