buildBody method
Implementation
Object? buildBody(Map<String, String?>? parameters,
[Map<String, String?>? requestParameters]) {
if (body != null) return body;
if (bodyBuilder == null) return null;
if (bodyBuilder is String) {
return buildStringPattern(
bodyBuilder as String?, parameters, [requestParameters!]);
} else if (bodyBuilder is BodyBuilderFunctionString) {
var f = bodyBuilder as BodyBuilderFunctionString;
return f(parameters, requestParameters);
} else if (bodyBuilder is BodyBuilderFunctionDynamic) {
var f = bodyBuilder as BodyBuilderFunctionDynamic;
return f(parameters, requestParameters);
} else if (bodyBuilder is BodyBuilderFunctionSimpleString) {
var f = bodyBuilder as BodyBuilderFunctionSimpleString;
return f();
} else if (bodyBuilder is BodyBuilderFunctionSimpleDynamic) {
var f = bodyBuilder as BodyBuilderFunctionSimpleDynamic;
return f();
} else {
return null;
}
}