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