DataRange.fromJson constructor

DataRange.fromJson(
  1. Map json_
)

Implementation

DataRange.fromJson(core.Map json_)
    : this(
        customEndDate: json_.containsKey('customEndDate')
            ? Date.fromJson(
                json_['customEndDate'] as core.Map<core.String, core.dynamic>)
            : null,
        customStartDate: json_.containsKey('customStartDate')
            ? Date.fromJson(json_['customStartDate']
                as core.Map<core.String, core.dynamic>)
            : null,
        range:
            json_.containsKey('range') ? json_['range'] as core.String : null,
      );