PreviewAgentsResponse.fromJson constructor

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

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?,
  );
}