fromDynamic static method

JsonSwitchBuilder fromDynamic(
  1. dynamic map, {
  2. JsonWidgetRegistry? registry,
})

Static function that is capable of decoding the widget from a dynamic JSON or YAML set of values.

Implementation

static JsonSwitchBuilder fromDynamic(
  dynamic map, {
  JsonWidgetRegistry? registry,
}) =>
    JsonSwitchBuilder(
      args: map,
    );