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) {
  value = choices.firstWhere(
      (element) => element.toString() == decodedJson['value'] as String);
}