toJson method
Convert the Authority object to a JSON representation.
Implementation
@override
Map<String, dynamic> toJson({bool visible = true}) {
return {
'account': account?.toJson(visible: visible),
'permission_name': StringUtils.tryDecode(permissionName)
};
}