loadJson method

  1. @override
void loadJson(
  1. Map<String, dynamic> decodedJson
)
override

Reconfigures this knob based on the provided deserialized JSON.

Implementation

@override
void loadJson(Map<String, dynamic> decodedJson) {
  final knobsList = decodedJson['knobs'] as List<dynamic>;
  value = knobsList.length;

  for (final (i, knob) in knobs.indexed) {
    knob.loadJson(knobsList[i] as Map<String, dynamic>);
  }
}