The evidence projection of this reference.
Map<String, Object?> toJson() => { 'kind': kind.name, if (path != null) 'path': path, };