GoogleMapsPlacesV1PlaceOpeningHours.fromJson constructor
GoogleMapsPlacesV1PlaceOpeningHours.fromJson(
- Map json_
Implementation
GoogleMapsPlacesV1PlaceOpeningHours.fromJson(core.Map json_)
: this(
openNow: json_.containsKey('openNow')
? json_['openNow'] as core.bool
: null,
periods: json_.containsKey('periods')
? (json_['periods'] as core.List)
.map((value) =>
GoogleMapsPlacesV1PlaceOpeningHoursPeriod.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
secondaryHoursType: json_.containsKey('secondaryHoursType')
? json_['secondaryHoursType'] as core.String
: null,
specialDays: json_.containsKey('specialDays')
? (json_['specialDays'] as core.List)
.map((value) =>
GoogleMapsPlacesV1PlaceOpeningHoursSpecialDay.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
weekdayDescriptions: json_.containsKey('weekdayDescriptions')
? (json_['weekdayDescriptions'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
);