toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (canonicalForm != null) 'canonicalForm': canonicalForm!,
if (formattedType != null) 'formattedType': formattedType!,
if (metadata != null) 'metadata': metadata!,
if (type != null) 'type': type!,
if (value != null) 'value': value!,
};