JSON to Dart null safety