OfferData class

Constructors

OfferData(String id, String code, {bool visible = true, required List<StringData> desc, String discountType = "fixed", required List<String> services, required List<String> providers, required List<String> category, double discount = 0, required DateTime expired})
OfferData.createEmpty()
factory
OfferData.fromJson(String id, Map<String, dynamic> data)
factory

Properties

category List<String>
getter/setter pair
code String
getter/setter pair
desc List<StringData>
getter/setter pair
discount double
getter/setter pair
discountType String
getter/setter pair
expired DateTime
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String
getter/setter pair
providers List<String>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
services List<String>
getter/setter pair
visible bool
getter/setter pair

Methods

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.
inherited

Operators

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