toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final oldestDate = this.oldestDate;
  final latestDate = this.latestDate;
  return {
    'oldestDate': unixTimestampToJson(oldestDate),
    if (latestDate != null) 'latestDate': unixTimestampToJson(latestDate),
  };
}