ContextMethod constructor

ContextMethod({
  1. required String methodName,
  2. required String methodNamePascalCase,
  3. List<NestedContextField>? params,
  4. List<NestedContextField>? body,
  5. List<NestedContextField>? query,
  6. required bool hasParams,
  7. required bool hasBody,
  8. required bool hasQuery,
  9. required bool hasUseCase,
  10. String? responseEntityName,
  11. String? responseEntityNameLower,
  12. String? responseEntityCamelCase,
  13. bool responseIsList = false,
  14. bool hasResponse = false,
})

Implementation

ContextMethod({
  required this.methodName,
  required this.methodNamePascalCase,
  this.params,
  this.body,
  this.query,
  required this.hasParams,
  required this.hasBody,
  required this.hasQuery,
  required this.hasUseCase,
  this.responseEntityName,
  this.responseEntityNameLower,
  this.responseEntityCamelCase,
  this.responseIsList = false,
  this.hasResponse = false,
});