AbsoluteDateRange.fromJson constructor

AbsoluteDateRange.fromJson(
  1. Map _json
)

Implementation

AbsoluteDateRange.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,
      );