RedeemData class abstract

The data with the information required to redeem the token.

Constructors

RedeemData({required String token, required Uri redeemUrl})
Default constructor for RedeemData.
factory
RedeemData.fromJson(Map<String, dynamic> json)
Alternate constructor that creates RedeemData from a json.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
redeemUrl Uri
The URI where the token must be redeemed.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token String
The token that must be redeemed in the backend.
no setter

Methods

fromJson(Map<String, dynamic> json) → dynamic
Returns a value of the type you specify, deserialized from a JSON object.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns a JSON-encoded representation of the value you supply.
inherited
toString() String
A string representation of this object.
inherited

Operators

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