readJson method
Implementation
Future<void> readJson() async {
if (data.isEmpty) {
final String response =
await rootBundle.loadString('assets/recipie.json');
List<dynamic> recievedData = await json.decode(response);
data = recievedData;
}
}