toJson method
Implementation
Map<String, dynamic> toJson() {
final permissions = this.permissions;
final principal = this.principal;
return {
if (permissions != null)
'Permissions': permissions.map((e) => e.toValue()).toList(),
if (principal != null) 'Principal': principal,
};
}