JsonView.map constructor

JsonView.map(
  1. Map<String, dynamic> map, {
  2. Key? key,
  3. JsonViewTheme? theme,
})

The constructor creates a widget from a json map model

Implementation

JsonView.map(
  Map<String, dynamic> map, {
  Key? key,
  JsonViewTheme? theme,
})  : _mapData = map,
      _stringData = null,
      _assetsPath = null,
      _builder = MapJsonViewBuilder(
        map,
        jsonViewTheme: theme,
      ),
      super(key: key);