Relevance.fromJson constructor
Implementation
factory Relevance.fromJson(Map<String, dynamic> json) {
return Relevance(
duration: json['Duration'] as String?,
freshness: json['Freshness'] as bool?,
importance: json['Importance'] as int?,
rankOrder: (json['RankOrder'] as String?)?.toOrder(),
valueImportanceMap: (json['ValueImportanceMap'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as int)),
);
}