toJson method
- bool pretty = false,
Serializes the configuration information into a JSON structure.
Implementation
String toJson({bool pretty = false}) =>
JsonEncoder.withIndent(pretty ? ' ' : null).convert({
'name': name,
'knobs': {
for (final knob in knobs.entries) knob.key: knob.value.toJson(),
},
});