SleepTimeModel class
- Available extensions
- Annotations
-
- @JsonSerializable(explicitToJson: true)
Constructors
- SleepTimeModel.new({required String id, required DateTime day, dynamic optimalBedtime, dynamic recommendation, dynamic status})
-
const
-
SleepTimeModel.fromJson(Map<
String, dynamic> json) -
factory
Properties
- day → DateTime
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
final
- optimalBedtime → dynamic
-
final
- recommendation → dynamic
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → dynamic
-
final
Methods
-
copyWith(
{String? id, DateTime? day, dynamic optimalBedtime, dynamic recommendation, dynamic status}) → SleepTimeModel -
Available on SleepTimeModel, provided by the $SleepTimeModelExtension extension
-
copyWithWrapped(
{Wrapped< String> ? id, Wrapped<DateTime> ? day, Wrapped? optimalBedtime, Wrapped? recommendation, Wrapped? status}) → SleepTimeModel -
Available on SleepTimeModel, provided by the $SleepTimeModelExtension extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
-
fromJsonFactory
→ const SleepTimeModel Function(Map<
String, dynamic> json) -
toJsonFactory
→ const Map<
String, dynamic> Function(SleepTimeModel instance)