toJson method

  1. @override
Map<String, dynamic> toJson({
  1. bool visible = true,
})
override

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)
  };
}