toJson method
- @override
override
Encodes this descriptor in the native protocol JSON form.
Implementation
@override
Map<String, Object?> toJson() => {
'kind': kind,
'unknownKind': unknownKind.name,
if (value != null) 'value': value.toString(),
};