toJson method
Implementation
Map<String, dynamic> toJson() {
final name = this.name;
final type = this.type;
final relevance = this.relevance;
final search = this.search;
return {
'Name': name,
'Type': type.toValue(),
if (relevance != null) 'Relevance': relevance,
if (search != null) 'Search': search,
};
}