Permission.fromJson constructor
Create a new Permission instance by parsing a JSON map.
Implementation
factory Permission.fromJson(Map<String, dynamic> json) {
return Permission(
type: PermissionType.fromName(json["type"]),
id: json["id"],
permissionName: json["permission_name"],
operations: BytesUtils.tryFromHexString(json["operations"]),
keys: (json["keys"] as List?)?.map((e) => TronKey.fromJson(e)).toList(),
parentId: json["parent_id"],
threshold: BigintUtils.tryParse(json["threshold"]));
}