This is my `json`:

```
{
  "data": [
    {
      "name": "Tata steel",
      "menu": [
        {
          "name": "LD1"
        },
        {
          "name": "LD2"
        },
        {
          "name": "LD3"
        }
      ]
    },
    {
      "name": "Tata steel 1",
      "menu": [
        {
          "name": "LD1"
        },
        {
          "name": "LD2"
        }
      ]
    }
  ]
}

```

I the error i got is something like this :  

`Unhandled Exception: type 'List<dynamic>' is not a subtype of type 'Map<String, dynamic>'"`

**This is my Model Class** 

```
class JsonModel {
  String name;
  Menu menu;

  JsonModel({this.name, this.menu});
  factory JsonModel.fromJson(Map<String, dynamic> parsedJson) {
    return JsonModel(
        name: parsedJson['name'], menu: Menu.fromJson(parsedJson['menu']));
  }
}

class Menu {
  String nameMenu;
  Menu({
    this.nameMenu,
  });

  factory Menu.fromJson(Map<String, dynamic> json) {
    return Menu(nameMenu: json['name']);
  }
}

```

**used in Main.dart** 

```
Future<String> _loadShapeAsset() async {
  return await rootBundle.loadString('assets/docs1/a.json');
}

Future loadShape() async {
  String jsonString = await _loadShapeAsset();
  final jsonResponse = json.decode(jsonString);
  print(jsonResponse);
  JsonModel shape = new JsonModel.fromJson(jsonResponse['data'][0]);
}

```

Thanks in advance