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