mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-25 21:09:23 +00:00
28 lines
515 B
Dart
28 lines
515 B
Dart
|
class PaynymCode {
|
||
|
final bool claimed;
|
||
|
final bool segwit;
|
||
|
final String code;
|
||
|
|
||
|
PaynymCode(
|
||
|
this.claimed,
|
||
|
this.segwit,
|
||
|
this.code,
|
||
|
);
|
||
|
|
||
|
PaynymCode.fromMap(Map<String, dynamic> map)
|
||
|
: claimed = map["claimed"] as bool,
|
||
|
segwit = map["segwit"] as bool,
|
||
|
code = map["code"] as String;
|
||
|
|
||
|
Map<String, dynamic> toMap() => {
|
||
|
"claimed": claimed,
|
||
|
"segwit": segwit,
|
||
|
"code": code,
|
||
|
};
|
||
|
|
||
|
@override
|
||
|
String toString() {
|
||
|
return toMap().toString();
|
||
|
}
|
||
|
}
|