UtteranceList.fromJson constructor

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

Implementation

factory UtteranceList.fromJson(Map<String, dynamic> json) {
  return UtteranceList(
    botVersion: json['botVersion'] as String?,
    utterances: (json['utterances'] as List?)
        ?.whereNotNull()
        .map((e) => UtteranceData.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}