mirror of
https://github.com/h7x4/unofficial_jisho_api_dart.git
synced 2025-06-22 06:23:34 +02:00
- 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
9 lines
243 B
Dart
9 lines
243 B
Dart
import 'dart:convert';
|
|
import 'package:unofficial_jisho_api/api.dart' as jisho;
|
|
final JsonEncoder encoder = JsonEncoder.withIndent(' ');
|
|
|
|
void main() {
|
|
jisho.searchForPhrase('日').then((result) {
|
|
print(encoder.convert(result));
|
|
});
|
|
} |