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