toJson method
- @override
override
Encodes this descriptor in the native protocol JSON form.
Implementation
@override
Map<String, Object?> toJson() {
if (width <= 0) throw RangeError.value(width, 'width', 'must be positive');
return {'kind': kind, 'inner': inner.toJson(), 'width': width};
}