Point class

Inheritance
Available extensions
Annotations
  • @JsonSerializable()
  • @CopyWith()

Constructors

Point.new({Date? date, bool? truncated, int? day, int? hour, int? minute})
Point.fromJson(Map<String, dynamic> json)
factory

Properties

copyWith → _$PointCWProxy

Available on Point, provided by the $PointCopyWith extension

Returns a callable class that can be used as follows: instanceOfPoint.copyWith(...).
no setter
date Date?
Date in the local timezone for the place.
final
day int?
A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is Monday, etc.
final
hashCode int
The hash code for this object.
no setterinherited
hour int?
The hour in 24 hour format. Ranges from 0 to 23.
final
minute int?
The minute. Ranges from 0 to 59.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
truncated bool?
Whether or not this endpoint was truncated. Truncation occurs when the real hours are outside the times we are willing to return hours between, so we truncate the hours back to these boundaries. This ensures that at most 24 * 7 hours from midnight of the day of the request are returned.
final

Methods

fromJsonList(List? jsonList) List<Point>?
inherited
fromJsonMap(Map<String, dynamic>? json) Point?
override
fromJsonString(String? json) Point?
inherited
fromJsonStringList(String? jsonStringList) List<Point>?
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toFieldsMask({String? parentKey}) List<String>
inherited
toJson() Map<String, dynamic>
override
toJsonMap() Map<String, dynamic>
inherited
toJsonString() String
inherited
toString() String
This is just to suggest children to implement a named constructor to support creating objects fromJson(...) and fromJsonString(...) as easy as T.build().fromJson(...) or T.build().fromJsonString(...)
inherited

Operators

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