mirror of
https://github.com/h7x4/Jisho-Study-Tool.git
synced 2024-12-22 05:57:28 +01:00
17 lines
358 B
Dart
17 lines
358 B
Dart
|
|
class WordQuery {
|
|
final String query;
|
|
|
|
// TODO: Link query with results that the user clicks onto.
|
|
// final List<WordResult> chosenResults;
|
|
|
|
WordQuery({
|
|
required this.query,
|
|
});
|
|
|
|
Map<String, Object?> toJson() => {'query': query};
|
|
|
|
factory WordQuery.fromJson(Map<String, dynamic> json) =>
|
|
WordQuery(query: json['query'] as String);
|
|
}
|