private static Object getExamplesFromBodyParameter(Parameter parameter) {
        Object examples = ((BodyParameter) parameter).getExamples();
        if (examples == null) {
            examples = parameter.getVendorExtensions().get("x-examples");
        }
        return examples;
    }
private static Object getExamplesFromBodyParameter ( Parameter parameter ) { Object examples = ( ( BodyParameter ) parameter ) . getExamples ( ) ; if ( examples == null ) { examples = parameter . getVendorExtensions ( ) . get ( "x-examples" ) ; } return examples ; }
Retrieves example payloads for body parameter either from examples or from vendor extensions.
@param parameter parameter to get the examples for
@return examples if found otherwise null