DetectKeyPhrasesResponse.fromJson constructor

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

Implementation

factory DetectKeyPhrasesResponse.fromJson(Map<String, dynamic> json) {
  return DetectKeyPhrasesResponse(
    keyPhrases: (json['KeyPhrases'] as List?)
        ?.whereNotNull()
        .map((e) => KeyPhrase.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}