BookingModel class Null safety

Booking data model

Inheritance
Annotations

Constructors

BookingModel({String? id, String? parkingId, double? totalPrice, TimeOfDay? parkingStartTime, TimeOfDay? parkingEndTime, String? parkingName, String? parkingAddress, DateTime? parkingDate, String? parkingLot, bool? paid, DateTime? bookingDate})
BookingModel.fromJson(Map<String, dynamic> json)
factory

Properties

bookingDate DateTime?
read / write, override
hashCode int
The hash code for this object. [...]
read-only, inherited
id String?
read / write, override
read / write, override
parkingAddress String?
read / write, override
parkingDate DateTime?
read / write, override
parkingEndTime TimeOfDay?
@TimeOfDayConverter(), read / write, override-getter
parkingId String?
read / write, override
parkingLot String?
read / write, override
parkingName String?
read / write, override
parkingStartTime TimeOfDay?
@TimeOfDayConverter(), read / write, override-getter
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
totalPrice double?
read / write, override

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]
inherited

Operators

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