mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 17:57:40 +00:00
21 lines
411 B
Dart
21 lines
411 B
Dart
|
class PaynymClaim {
|
||
|
final String claimed;
|
||
|
final String token;
|
||
|
|
||
|
PaynymClaim(this.claimed, this.token);
|
||
|
|
||
|
PaynymClaim.fromMap(Map<String, dynamic> map)
|
||
|
: claimed = map["claimed"] as String,
|
||
|
token = map["token"] as String;
|
||
|
|
||
|
Map<String, dynamic> toMap() => {
|
||
|
"claimed": claimed,
|
||
|
"token": token,
|
||
|
};
|
||
|
|
||
|
@override
|
||
|
String toString() {
|
||
|
return toMap().toString();
|
||
|
}
|
||
|
}
|