toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final duration = this.duration;
  final recencyType = this.recencyType;
  return {
    'Duration': duration.toValue(),
    'RecencyType': recencyType.toValue(),
  };
}