ListBotsResponse.fromJson constructor

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

Implementation

factory ListBotsResponse.fromJson(Map<String, dynamic> json) {
  return ListBotsResponse(
    bots: (json['Bots'] as List?)
        ?.whereNotNull()
        .map((e) => Bot.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}