DayPart.fromJson constructor
DayPart.fromJson(
- Map _json
Implementation
DayPart.fromJson(core.Map _json)
: this(
dayOfWeek: _json.containsKey('dayOfWeek')
? _json['dayOfWeek'] as core.String
: null,
endTime: _json.containsKey('endTime')
? TimeOfDay.fromJson(
_json['endTime'] as core.Map<core.String, core.dynamic>)
: null,
startTime: _json.containsKey('startTime')
? TimeOfDay.fromJson(
_json['startTime'] as core.Map<core.String, core.dynamic>)
: null,
);