Coupon class

Constructors

Coupon({required String id, required DateTime date_created, required DateTime date_expiry, required bool used, required String user_id, required String product_id})
const
Coupon.from_snapshot(String id, Map<String, dynamic> snapshot)

Properties

date_created DateTime
final
date_expiry DateTime
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
product_id String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
used bool
final
user_id String
final

Methods

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

Operators

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