I'm creating a new ModelFormat, and I want a Codec for it, but that codec is going to be 99% the same as the regular bbmodel codec. All I want to do is have the regular bbmodel codec, except:
- After the regular bbmodel json is made, generate a new key-value pair in the json object which holds the custom data
- When reading the file, first run the regular bbmodel codec, then read the data in that custom key-value pair to modify result
This seems like something that should be relatively simple to do, just "wrapping" the regular bbmodel with some new data/operations, but I'm not sure what the best way to go about it is. Do I need to copy-paste the entire bbmodel codec and make slight changes to it?