DateRange.fromJson constructor

DateRange.fromJson(
  1. Map<String, dynamic> json
)

Parses a DateRange from TDLib JSON.

Implementation

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