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