toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (key != null) 'key': key!,
if (localObjectReference != null)
'localObjectReference': localObjectReference!,
if (name != null) 'name': name!,
if (optional != null) 'optional': optional!,
};