mirror of
https://github.com/h7x4/unofficial_jisho_api_dart.git
synced 2025-09-10 04:53:45 +02:00
Add json definition for API result
This commit is contained in:
10
example/phrase_search_example.dart
Normal file
10
example/phrase_search_example.dart
Normal file
@@ -0,0 +1,10 @@
|
||||
import 'dart:convert';
|
||||
import 'package:unofficial_jisho_api/unofficial_jisho_api.dart';
|
||||
final jisho = JishoApi();
|
||||
final encoder = JsonEncoder.withIndent(' ');
|
||||
|
||||
void main() async {
|
||||
await jisho.searchForPhrase('反対').then((data) {
|
||||
print(encoder.convert(data));
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user