Parse from a json
factory DateRange.fromJson(Map<String, dynamic> json) => DateRange( startDate: json['start_date'], endDate: json['end_date'], );