TransactionModel class Null safety

Transaction data model

Inheritance
Annotations

Constructors

TransactionModel({required String id, required String userId, required String bookingId, required String parkingId, required double price, required DateTime dateTime, String? discountCode, String? paymentCardId})
TransactionModel.fromJson(Map<String, dynamic> json)
factory

Properties

booking ↔ dynamic
read / write, inherited
bookingId String
read / write, inherited
dateTime DateTime
read / write, inherited
discountCode String?
read / write, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
id String
read / write, inherited
parking ↔ dynamic
read / write, inherited
parkingId String
read / write, inherited
paymentCard ↔ dynamic
read / write, inherited
paymentCardId String?
read / write, inherited
price double
read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
userId String
read / write, inherited

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