How to get model layout (NCHW vs. NHWC) in C++ API?

Hi, quick question: Is there a way to retrieve the layout of a compiled model via the C++ API?

The info is in the model JSON file, but I’d rather not have to manually parse through that JSON myself, if an API already exists.