1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-29 16:26:27 +00:00
comunicmobile/lib/models/custom_emoji.dart

31 lines
631 B
Dart
Raw Normal View History

2020-04-28 16:47:47 +00:00
/// Single custom emoji information
///
/// @author Pierre Hubert
class CustomEmoji {
final int? id;
final int? userID;
final String? shortcut;
final String? url;
2020-04-28 16:47:47 +00:00
const CustomEmoji({
required int this.id,
required int this.userID,
required String this.shortcut,
required String this.url,
2022-03-11 16:16:46 +00:00
});
2020-04-28 16:47:47 +00:00
Map<String, dynamic> toMap() => {
"id": id,
"userID": userID,
"shortcut": shortcut,
"url": url,
};
CustomEmoji.fromMap(Map<String, dynamic> map)
: id = map["id"],
userID = map["userID"],
shortcut = map["shortcut"],
url = map["url"];
}