DateRange.fromJson constructor Null safety

DateRange.fromJson(
  1. Map _json
)

Implementation

DateRange.fromJson(core.Map _json)
    : this(
        endDate: _json.containsKey('endDate')
            ? Date.fromJson(
                _json['endDate'] as core.Map<core.String, core.dynamic>)
            : null,
        startDate: _json.containsKey('startDate')
            ? Date.fromJson(
                _json['startDate'] as core.Map<core.String, core.dynamic>)
            : null,
      );