GetBotAliasesResponse.fromJson constructor

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

Implementation

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