mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-27 13:59:21 +00:00
37 lines
749 B
Dart
37 lines
749 B
Dart
/*
|
|
* This file is part of Stack Wallet.
|
|
*
|
|
* Copyright (c) 2023 Cypher Stack
|
|
* All Rights Reserved.
|
|
* The code is distributed under GPLv3 license, see LICENSE file for details.
|
|
* Generated by Cypher Stack on 2023-05-26
|
|
*
|
|
*/
|
|
|
|
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();
|
|
}
|
|
}
|