toMap method
Implementation
Map<String, dynamic> toMap() {
return {
'methodName': methodName,
'methodNamePascalCase': methodNamePascalCase,
'params': params?.map((e) => e.toMap()).toList(),
'body': body?.map((e) => e.toMap()).toList(),
'query': query?.map((e) => e.toMap()).toList(),
'hasParams': hasParams,
'hasBody': hasBody,
'hasQuery': hasQuery,
'hasUseCase': hasUseCase,
};
}