toJson method

Map<String, dynamic> toJson()

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,
  };
}