DateRange.fromJson constructor

DateRange.fromJson(
  1. Map _json
)

Implementation

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