Offer class
A class that represents an offer in the Offerwall SDK.
Constructors
- Offer({required String status, required String id, required String name, required double revenue, required double reward, required String transactionId, required int time})
- Constructs an instance of Offer with the required parameters.
-
Offer.fromJson(Map<
String, dynamic> json) -
Creates an Offer instance from a JSON map.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The unique identifier of the offer.
final
- name → String
-
The name of the offer.
final
- revenue → double
-
The revenue associated with the offer.
final
- reward → double
-
The reward value of the offer.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → String
-
The status of the offer (e.g., "approved", "rejected").
final
- time → int
-
The timestamp when the offer was created or modified.
final
- transactionId → String
-
The transaction ID associated with the offer.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited