plugins have state, they support the getState function. This state needs to be reapplied when the config contains a previously saved state. Save a map with a different background-color and check the JSON, and then load it back up. It should be exactly the same when you saved it.