cake_wallet/lib/mastodon/mastodon_user.dart
Serhii b414893211
CW-491-Send-to-Mastodon-username-addresses (#1107)
* Send to Mastodon username addresses

* Update mastodon_user.dart

* Enhance Eth out of gas error condition
Remove some code warnings [skip ci]

---------

Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
2023-10-05 15:18:35 +03:00

36 lines
744 B
Dart

class MastodonUser {
String id;
String username;
String acct;
String note;
MastodonUser({
required this.id,
required this.username,
required this.acct,
required this.note,
});
factory MastodonUser.fromJson(Map<String, dynamic> json) {
return MastodonUser(
id: json['id'] as String,
username: json['username'] as String,
acct: json['acct'] as String,
note: json['note'] as String,
);
}
}
class PinnedPost {
final String id;
final String content;
PinnedPost({required this.id, required this.content});
factory PinnedPost.fromJson(Map<String, dynamic> json) {
return PinnedPost(
id: json['id'] as String,
content: json['content'] as String,
);
}
}