buildFromMap method

Widget buildFromMap(
  1. Map<String, dynamic> json, {
  2. required ActionHandler actionHandler,
  3. Map<String, dynamic>? bindingContext,
  4. StateAdapter? stateAdapter,
})

Parse JSON map and build widget tree. Supports schemaVersion and ui wrapper.

Implementation

Widget buildFromMap(
  Map<String, dynamic> json, {
  required ActionHandler actionHandler,
  Map<String, dynamic>? bindingContext,
  StateAdapter? stateAdapter,
}) {
  final parsed = JsonParser().parseMap(json);
  return buildFromDescriptor(
    root: parsed.root,
    actionHandler: actionHandler,
    bindingContext: bindingContext,
    stateAdapter: stateAdapter,
  );
}