DocumentMetadataConfiguration.fromJson constructor
DocumentMetadataConfiguration.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DocumentMetadataConfiguration.fromJson(Map<String, dynamic> json) {
return DocumentMetadataConfiguration(
name: json['Name'] as String,
type: (json['Type'] as String).toDocumentAttributeValueType(),
relevance: json['Relevance'] != null
? Relevance.fromJson(json['Relevance'] as Map<String, dynamic>)
: null,
search: json['Search'] != null
? Search.fromJson(json['Search'] as Map<String, dynamic>)
: null,
);
}