toJsonMap method
Implementation
Map? toJsonMap() {
return removeNullEntries({
'operation': getDataSourceOperationName(operation),
'baseURL': baseURL,
if (isNotEmptyString(baseURLProxy)) 'baseURLProxy': baseURLProxy,
'method': getHttpMethodName(method),
'path': path,
'fullPath': fullPath,
if (isNotEmptyObject(parameters)) 'parameters': parameters,
'body': body,
if (jsonTransformer != null)
'jsonTransformer': jsonTransformer.toString(),
if (samples != null) 'samples': samples
});
}