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 val = decodedJson['value'];
  if (val is String) {
    setValueFromString(val);
  } else {
    value = val as int;
  }
}