GetDocumentTextDetectionResponse.fromJson constructor
GetDocumentTextDetectionResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GetDocumentTextDetectionResponse.fromJson(Map<String, dynamic> json) {
return GetDocumentTextDetectionResponse(
blocks: (json['Blocks'] as List?)
?.whereNotNull()
.map((e) => Block.fromJson(e as Map<String, dynamic>))
.toList(),
detectDocumentTextModelVersion:
json['DetectDocumentTextModelVersion'] as String?,
documentMetadata: json['DocumentMetadata'] != null
? DocumentMetadata.fromJson(
json['DocumentMetadata'] as Map<String, dynamic>)
: null,
jobStatus: (json['JobStatus'] as String?)?.toJobStatus(),
nextToken: json['NextToken'] as String?,
statusMessage: json['StatusMessage'] as String?,
warnings: (json['Warnings'] as List?)
?.whereNotNull()
.map((e) => Warning.fromJson(e as Map<String, dynamic>))
.toList(),
);
}