Authority.fromJson constructor

Authority.fromJson(
  1. Map<String, dynamic> json
)

Create a new Authority instance by parsing a JSON map.

Implementation

factory Authority.fromJson(Map<String, dynamic> json) {
  return Authority(
      account: json["account"] == null
          ? null
          : AccountId.fromJson(json["account"]),
      permissionName: StringUtils.tryEncode(json["permission_name"]));
}