mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-30 15:29:41 +00:00
41 lines
876 B
Dart
41 lines
876 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 PaynymAccountLite {
|
|
final String nymId;
|
|
final String nymName;
|
|
final String code;
|
|
final bool segwit;
|
|
|
|
PaynymAccountLite(
|
|
this.nymId,
|
|
this.nymName,
|
|
this.code,
|
|
this.segwit,
|
|
);
|
|
|
|
PaynymAccountLite.fromMap(Map<String, dynamic> map)
|
|
: nymId = map["nymId"] as String,
|
|
nymName = map["nymName"] as String,
|
|
code = map["code"] as String,
|
|
segwit = map["segwit"] as bool;
|
|
|
|
Map<String, dynamic> toMap() => {
|
|
"nymId": nymId,
|
|
"nymName": nymName,
|
|
"code": code,
|
|
"segwit": segwit,
|
|
};
|
|
|
|
@override
|
|
String toString() {
|
|
return toMap().toString();
|
|
}
|
|
}
|