2021-08-03 22:02:42 +02:00
|
|
|
import './word_result.dart';
|
|
|
|
|
|
|
|
class WordQuery {
|
2021-12-04 05:13:13 +01:00
|
|
|
final String query;
|
2021-08-03 22:02:42 +02:00
|
|
|
|
|
|
|
// TODO: Link query with results that the user clicks onto.
|
2021-12-04 05:13:13 +01:00
|
|
|
// final List<WordResult> chosenResults;
|
2021-08-03 22:02:42 +02:00
|
|
|
|
|
|
|
WordQuery({
|
|
|
|
required this.query,
|
|
|
|
});
|
2021-12-04 05:13:13 +01:00
|
|
|
|
|
|
|
Map<String, Object?> toJson() => {'query': query};
|
|
|
|
|
|
|
|
factory WordQuery.fromJson(Map<String, dynamic> json) =>
|
|
|
|
WordQuery(query: json['query'] as String);
|
2021-12-01 23:09:53 +01:00
|
|
|
}
|