|string|null $request */ public static function fromRequest(array|string|null $request = null): static { $payload = is_string($request) ? json_decode(rawurldecode(base64_decode($request)), true) : $request; return static::fromPost($payload); } /** * @param array $post */ public static function fromPost(?array $post = null): static { return static::withoutMagicalCreationFrom($post ?: []); } }