Convert the Authority object to a JSON representation.
@override Map<String, dynamic> toJson() { return { "account": account?.toJson(), "permission_name": StringUtils.tryDecode(permissionName) }; }