Reservation class

A reservation for a Slot.

Annotations

Constructors

Reservation({required int id, @JsonKey(name: 'slotid') required int slotId, @ReservationDateTimeConverter() required DateTime date, @JsonKey(name: 'userid') required int userId, @JsonKey(name: 'reserverid') required int reserverId})
A reservation for a Slot.
const
factory
Reservation.fromJson(Map<String, Object?> json)
Creates a Reservation from json.
factory

Properties

copyWith → $ReservationCopyWith<Reservation>
Create a copy of Reservation with the given fields replaced by the non-null parameter values.
no setterinherited
date DateTime
The date of this reservation.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id int
Unique identifier of this reservation.
no setterinherited
reserverId int
The id of the user that made this reservation.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slotId int
The id of the slot this reservation is for.
no setterinherited
userId int
The id of this reservation is for.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this Reservation to a JSON map.
inherited
toString() String
A string representation of this object.
inherited

Operators

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