AnalyzeSentimentRequest.fromJson constructor
AnalyzeSentimentRequest.fromJson(
- Object? j
Implementation
factory AnalyzeSentimentRequest.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return AnalyzeSentimentRequest(
document: switch (json['document']) {
null => null,
Object $1 => Document.fromJson($1),
},
encodingType: switch (json['encodingType']) {
null => EncodingType.$default,
Object $1 => EncodingType.fromJson($1),
},
);
}