toMap method

Map<String, dynamic> toMap()

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,
    'responseEntityName': responseEntityName,
    'responseEntityNameLower': responseEntityNameLower,
    'responseEntityCamelCase': responseEntityCamelCase,
    'responseIsList': responseIsList,
    'hasResponse': hasResponse,
  };
}