import 'package:comunic/lists/abstract_list.dart'; import 'package:comunic/models/custom_emoji.dart'; /// Custom emojies list /// /// @author Pierre HUBERT class CustomEmojiesList extends AbstractList { /// Serialize this list List> toSerializableList() => map((f) => f.toMap()).toList(); /// Un-serialize this list static CustomEmojiesList fromSerializedList(List list) => CustomEmojiesList() ..addAll(list.map((f) => CustomEmoji.fromMap(f)).toList()); }