Map<String, Object?> toJson() => { if (source != null) 'source': source, 'sourceReference': sourceReference, };