FacetResult.fromJson constructor
FacetResult.fromJson(
- Map<String, dynamic> json
)
Implementation
factory FacetResult.fromJson(Map<String, dynamic> json) {
return FacetResult(
documentAttributeKey: json['DocumentAttributeKey'] as String?,
documentAttributeValueCountPairs:
(json['DocumentAttributeValueCountPairs'] as List?)
?.whereNotNull()
.map((e) => DocumentAttributeValueCountPair.fromJson(
e as Map<String, dynamic>))
.toList(),
documentAttributeValueType:
(json['DocumentAttributeValueType'] as String?)
?.toDocumentAttributeValueType(),
);
}