mirror of
https://github.com/h7x4/unofficial_jisho_api_dart.git
synced 2025-09-10 04:53:45 +02:00
Update to 3.0.0
- Add fromJson factories for all objects - Make some properties use getters, to reduce redundant data - Make all objects comparable with the equatable package - Make all objects immutable with a constant constructor as a result of making them comparable
This commit is contained in:
@@ -7,6 +7,7 @@ void main() {
|
||||
|
||||
final data = result.data;
|
||||
if (data != null) {
|
||||
print('Kanji: ${data.kanji}');
|
||||
print('Taught in: ${data.taughtIn}');
|
||||
print('JLPT level: ${data.jlptLevel}');
|
||||
print('Newspaper frequency rank: ${data.newspaperFrequencyRank}');
|
||||
|
@@ -4,7 +4,6 @@ final JsonEncoder encoder = JsonEncoder.withIndent(' ');
|
||||
|
||||
void main() {
|
||||
jisho.searchForPhrase('日').then((result) {
|
||||
// jisho.searchForPhrase('する').then((result) {
|
||||
print(encoder.convert(result));
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user