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