AnalyzeDocumentResponse.fromJson constructor
AnalyzeDocumentResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory AnalyzeDocumentResponse.fromJson(Map<String, dynamic> json) {
return AnalyzeDocumentResponse(
analyzeDocumentModelVersion:
json['AnalyzeDocumentModelVersion'] as String?,
blocks: (json['Blocks'] as List?)
?.whereNotNull()
.map((e) => Block.fromJson(e as Map<String, dynamic>))
.toList(),
documentMetadata: json['DocumentMetadata'] != null
? DocumentMetadata.fromJson(
json['DocumentMetadata'] as Map<String, dynamic>)
: null,
humanLoopActivationOutput: json['HumanLoopActivationOutput'] != null
? HumanLoopActivationOutput.fromJson(
json['HumanLoopActivationOutput'] as Map<String, dynamic>)
: null,
);
}