mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-28 22:39:21 +00:00
23 lines
525 B
Dart
23 lines
525 B
Dart
|
class PaynymFollow {
|
||
|
final String follower;
|
||
|
final String following;
|
||
|
final String token;
|
||
|
|
||
|
PaynymFollow(this.follower, this.following, this.token);
|
||
|
|
||
|
PaynymFollow.fromMap(Map<String, dynamic> map)
|
||
|
: follower = map["follower"] as String,
|
||
|
following = map["following"] as String,
|
||
|
token = map["token"] as String;
|
||
|
|
||
|
Map<String, dynamic> toMap() => {
|
||
|
"follower": follower,
|
||
|
"following": following,
|
||
|
"token": token,
|
||
|
};
|
||
|
|
||
|
@override
|
||
|
String toString() {
|
||
|
return toMap().toString();
|
||
|
}
|
||
|
}
|