Map<String, dynamic> toMap() { return { "jsObjectName": jsObjectName, "allowedOriginRules": allowedOriginRules.toList(), }; }