DetectTextResponse.fromJson constructor

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

Implementation

factory DetectTextResponse.fromJson(Map<String, dynamic> json) {
  return DetectTextResponse(
    textDetections: (json['TextDetections'] as List?)
        ?.whereNotNull()
        .map((e) => TextDetection.fromJson(e as Map<String, dynamic>))
        .toList(),
    textModelVersion: json['TextModelVersion'] as String?,
  );
}