toJson method
Implementation
Map<String, dynamic> toJson() {
final repositoryName = this.repositoryName;
final sourceReference = this.sourceReference;
final destinationReference = this.destinationReference;
return {
'repositoryName': repositoryName,
'sourceReference': sourceReference,
if (destinationReference != null)
'destinationReference': destinationReference,
};
}