fromJson static method

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

Implementation

static DateRange? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return DateRange(
    startDate: (json['start_date'] as int?) ?? 0,
    endDate: (json['end_date'] as int?) ?? 0,
  );
}