You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fluffychat/lib/pangea/lemmas/user_set_lemma_info.dart

35 lines
789 B
Dart

class UserSetLemmaInfo {
final String? meaning;
final List<String>? emojis;
UserSetLemmaInfo({
this.emojis,
this.meaning,
});
factory UserSetLemmaInfo.fromJson(Map<String, dynamic> json) {
return UserSetLemmaInfo(
emojis: json["emojis"] != null ? List<String>.from(json["emojis"]) : null,
meaning: json['meaning'] as String?,
);
}
Map<String, dynamic> toJson() {
return {
'emojis': emojis,
'meaning': meaning,
};
}
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is UserSetLemmaInfo &&
runtimeType == other.runtimeType &&
emojis == other.emojis &&
meaning == other.meaning;
@override
int get hashCode => emojis.hashCode ^ meaning.hashCode;
}