PutBotAliasResponse.fromJson constructor

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

Implementation

factory PutBotAliasResponse.fromJson(Map<String, dynamic> json) {
  return PutBotAliasResponse(
    botName: json['botName'] as String?,
    botVersion: json['botVersion'] as String?,
    checksum: json['checksum'] as String?,
    conversationLogs: json['conversationLogs'] != null
        ? ConversationLogsResponse.fromJson(
            json['conversationLogs'] as Map<String, dynamic>)
        : null,
    createdDate: timeStampFromJson(json['createdDate']),
    description: json['description'] as String?,
    lastUpdatedDate: timeStampFromJson(json['lastUpdatedDate']),
    name: json['name'] as String?,
    tags: (json['tags'] as List?)
        ?.whereNotNull()
        .map((e) => Tag.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}