toJson method

Map<String, dynamic> toJson()

Returns a JSON-encodable representation of this DateRange object.

Implementation

Map<String, dynamic> toJson() => {
      'startDate': startDate.toIso8601String(),
      'endDate': endDate.toIso8601String(),
    };