DateFilter.fromJson constructor

DateFilter.fromJson(
  1. Map json_
)

Implementation

DateFilter.fromJson(core.Map json_)
    : this(
        dates: json_.containsKey('dates')
            ? (json_['dates'] as core.List)
                .map((value) => Date.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        ranges: json_.containsKey('ranges')
            ? (json_['ranges'] as core.List)
                .map((value) => DateRange.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );