GetBotsResponse.fromJson constructor

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

Implementation

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