mirror of
https://github.com/h7x4/unofficial_jisho_api_dart.git
synced 2025-03-09 13:33:30 +01:00
Remove redundant property from ExampleResults
This commit is contained in:
parent
5ae14e60b7
commit
1317402894
@ -2,6 +2,7 @@
|
||||
|
||||
- Export object interfaces for both libraries
|
||||
- Add documentation for object interfaces
|
||||
- Remove accidental redundant property "phrase" from ExampleResults
|
||||
|
||||
## 1.0.2
|
||||
|
||||
|
@ -120,7 +120,6 @@ ExampleResults parseExamplePageData(String pageHtml, String phrase) {
|
||||
query: phrase,
|
||||
found: results.isNotEmpty,
|
||||
results: results ?? [],
|
||||
uri: uriForExampleSearch(phrase),
|
||||
phrase: phrase,
|
||||
uri: uriForExampleSearch(phrase)
|
||||
);
|
||||
}
|
||||
|
@ -154,18 +154,15 @@ class ExampleResults {
|
||||
String uri;
|
||||
/// The examples that were found, if any.
|
||||
List<ExampleResultData> results;
|
||||
|
||||
String phrase;
|
||||
|
||||
ExampleResults({this.query, this.found, this.results, this.uri, this.phrase});
|
||||
ExampleResults({this.query, this.found, this.results, this.uri});
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return {
|
||||
'query': query,
|
||||
'found': found,
|
||||
'results': results,
|
||||
'uri': uri,
|
||||
'phrase': phrase
|
||||
'uri': uri
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user