DateRange.fromJson constructor

DateRange.fromJson(
  1. Map json_
)

Implementation

DateRange.fromJson(core.Map json_)
    : this(
        endDate: json_.containsKey('endDate')
            ? core.DateTime.parse(json_['endDate'] as core.String)
            : null,
        kind: json_['kind'] as core.String?,
        relativeDateRange: json_['relativeDateRange'] as core.String?,
        startDate: json_.containsKey('startDate')
            ? core.DateTime.parse(json_['startDate'] as core.String)
            : null,
      );