Returns a representation of this object as a JSON object.
Map<String, Object?> toJson() => { "info": info.toJson(), "permisions": permissions?.map((e) => e.encode()).toList() };