# JSON を扱う [yumemi_weather] の API を切り替えて、より詳細な天気予報を取得して表示しましょう。 ## 課題 - 使用する API を `fetchThrowsWeather()` から `fetchWeather()` に変更する - API から受け取った天気状況・最低気温・最高気温を画面に表示する ## 動作イメージ ![demo] ## ヒント Dart にはデフォルトで [JSON を変換する仕組み] が用意されています。 <!-- Links --> [yumemi_weather]: https://yumemi-inc.github.io/flutter-training-template/ [demo]: https://github.com/yumemi-inc/flutter-training-template/blob/main/docs/sessions/images/json/demo.gif?raw=true [JSON を変換する仕組み]: https://dart.dev/guides/libraries/library-tour#dartconvert---decoding-and-encoding-json-utf-8-and-more
JSON を扱う
yumemi_weather の API を切り替えて、より詳細な天気予報を取得して表示しましょう。
課題
fetchThrowsWeather()からfetchWeather()に変更する動作イメージ
ヒント
Dart にはデフォルトで JSON を変換する仕組み が用意されています。