SelectOption.fromJson constructor
Implementation
factory SelectOption.fromJson(Map<String, dynamic> json, String path) {
final value = json['value'];
if (value == null) {
throw SchemaFormatException('$path.value', 'expected a value, got null');
}
return SelectOption(
value: value as Object,
label: req<String>(json, 'label', path),
);
}