Map<String, Object?> toJson() => { 'kind': kind.wireValue, 'git': git, 'location': location, 'ref': ref, };