toJson method
Re-encode to the externally-tagged wire shape ({tag: payload}).
Implementation
@override
Map<String, dynamic> toJson() => {
'Source': {
'id': id,
'source_type': sourceType,
if (url != null) 'url': url,
if (title != null) 'title': title,
if (providerMetadata != null) 'provider_metadata': providerMetadata,
},
};