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