isStyleBased property

bool get isStyleBased

Whether this encoding uses style-based serialization mode.

True when any of style, explode, or allowReserved is non-null, meaning the OAS spec explicitly specified at least one of these fields. When false, serialization is content-based (determined by contentType).

Implementation

bool get isStyleBased =>
    style != null || explode != null || allowReserved != null;