toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final destinationPath = this.destinationPath;
  final sourcePath = this.sourcePath;
  final addGroupOwner = this.addGroupOwner;
  final permission = this.permission;
  return {
    'destinationPath': destinationPath,
    'sourcePath': sourcePath,
    if (addGroupOwner != null) 'addGroupOwner': addGroupOwner,
    if (permission != null) 'permission': permission.toValue(),
  };
}