mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-01 09:57:46 +00:00
b414893211
* 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>
36 lines
744 B
Dart
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,
|
|
);
|
|
}
|
|
}
|