mirror of
https://github.com/h7x4/unofficial_jisho_api_dart.git
synced 2025-12-20 01:10:40 +01:00
Fixed JishoAttribution bool value parsing
This commit is contained in:
@@ -18,10 +18,9 @@ class JishoApi {
|
||||
/// @returns {Object} The response data from the official Jisho.org API. Its format is somewhat
|
||||
/// complex and is not documented, so put on your trial-and-error hat.
|
||||
/// @async
|
||||
Future<List<JishoResult>> searchForPhrase(String phrase) async {
|
||||
Future<JishoAPIResult> searchForPhrase(String phrase) async {
|
||||
final uri = uriForPhraseSearch(phrase);
|
||||
final jsonData = await http.get(uri).then((response) => JishoAPIResult.fromJson(jsonDecode(response.body)));
|
||||
return jsonData.data;
|
||||
return await http.get(uri).then((response) => JishoAPIResult.fromJson(jsonDecode(response.body)));
|
||||
}
|
||||
|
||||
/// Scrape Jisho.org for information about a kanji character.
|
||||
|
||||
Reference in New Issue
Block a user