PlaceOpeningHoursPeriodDetail class

Annotations
  • @JsonSerializable(fieldRename: FieldRename.snake, explicitToJson: true)

Constructors

PlaceOpeningHoursPeriodDetail({required int day, required String time, String? date, bool? truncated})
const
PlaceOpeningHoursPeriodDetail.fromJson(Map<String, dynamic> json)
Converts a Map in the format provided by the JSON parser into an instance of the PlaceOpeningHoursPeriodDetail class.
factory

Properties

date String?
A date expressed in RFC3339 format in the local timezone for the place, for example 2010-12-31.
final
day int
A number from 0–6, corresponding to the days of the week, starting on Sunday. For example, 2 means Tuesday.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
time String
May contain a time of day in 24-hour hhmm format. Values are in the range 0000–2359. The time will be reported in the place’s time zone.
final
truncated bool?
True if a given period was truncated due to a seven-day cutoff, where the period starts before midnight on the date of the request and/or ends at or after midnight on the last day. This property indicates that the period for open or close can extend past this seven-day cutoff.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts an instance of the PlaceOpeningHoursPeriodDetail class into a Map that can be serialized to JSON.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override