toJson method
Implementation
Map<String, dynamic> toJson() => {
'__type': 'HWBind',
'key': key,
// Omitted when absent so the wire shape is unchanged for the common case.
if (defaultValue != null) 'defaultValue': defaultValue,
};