toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final duration = this.duration;
  final freshness = this.freshness;
  final importance = this.importance;
  final rankOrder = this.rankOrder;
  final valueImportanceMap = this.valueImportanceMap;
  return {
    if (duration != null) 'Duration': duration,
    if (freshness != null) 'Freshness': freshness,
    if (importance != null) 'Importance': importance,
    if (rankOrder != null) 'RankOrder': rankOrder.toValue(),
    if (valueImportanceMap != null) 'ValueImportanceMap': valueImportanceMap,
  };
}