Bedding in disc brakes is a process that enables a sacrificial layer of the pad to be deposited onto the rotor. It is then the interaction of the pad with that layer that produces the friction required to slow the bike. Organic/resin pads are easier to bed in than sintered but wear more quickly and also get hot more quickly. Regardless, the bedding in process is the same. You need to start with a clean rotor, especially if you are changing from one compound of brake pad to another. A clean rotor if you are using a different compound pad than previously, is one with no brake pad sacrificial layer on it and that is achieved using wire wool or wet and dry, then brake cleaner/IPA.
To achieve the transfer of the sacrificial layer you need to apply the brakes several times quite hard but only for a brief period each time. The idea is to avoid the rotor or pad heating up since that will destroy the process. So just riding along the level and braking quite sharply and then releasing is the best method.....repeated several times. You should be able to tell how the process is progressing by how much the braking improves. It should not take long with resin pads to complete the process and resin pads grab hard even when cold so it should be easy to determine when you have done enough. The one thing to avoid is lengthy dragging of the brake. That will just produce heat and negate the process.