ClassifyDocumentResponse.fromJson constructor
Implementation
factory ClassifyDocumentResponse.fromJson(Map<String, dynamic> json) {
return ClassifyDocumentResponse(
classes: (json['Classes'] as List?)
?.whereNotNull()
.map((e) => DocumentClass.fromJson(e as Map<String, dynamic>))
.toList(),
labels: (json['Labels'] as List?)
?.whereNotNull()
.map((e) => DocumentLabel.fromJson(e as Map<String, dynamic>))
.toList(),
);
}