stack_wallet/lib/models/paynym/created_paynym.dart

46 lines
1,010 B
Dart
Raw Normal View History

2023-05-26 21:21:16 +00:00
/*
* 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
*
*/
2022-12-20 22:58:25 +00:00
class CreatedPaynym {
final bool claimed;
2022-12-21 23:02:14 +00:00
final String? nymAvatar;
2022-12-20 22:58:25 +00:00
final String? nymId;
final String? nymName;
final String? token;
CreatedPaynym(
this.claimed,
this.nymAvatar,
this.nymId,
this.nymName,
this.token,
);
CreatedPaynym.fromMap(Map<String, dynamic> map)
: claimed = map["claimed"] as bool,
2022-12-21 23:02:14 +00:00
nymAvatar = map["nymAvatar"] as String?,
nymId = map["nymID"] as String?,
2022-12-20 22:58:25 +00:00
nymName = map["nymName"] as String?,
token = map["token"] as String?;
Map<String, dynamic> toMap() => {
"claimed": claimed,
"nymAvatar": nymAvatar,
"nymId": nymId,
"nymName": nymName,
"token": token,
};
@override
String toString() {
return toMap().toString();
}
}