Jisho-Study-Tool/lib/models/history/kanji_query.dart

13 lines
255 B
Dart
Raw Permalink Normal View History

2021-08-03 22:02:42 +02:00
class KanjiQuery {
2021-12-04 05:13:13 +01:00
final String kanji;
2021-08-03 22:02:42 +02:00
KanjiQuery({
required this.kanji,
});
2021-12-04 05:13:13 +01:00
Map<String, Object?> toJson() => {'kanji': kanji};
factory KanjiQuery.fromJson(Map<String, dynamic> json) =>
KanjiQuery(kanji: json['kanji'] as String);
2021-08-03 22:02:42 +02:00
}