ResponseModel constructor

ResponseModel({
  1. int? statusCode,
  2. String? message,
  3. dynamic data,
  4. int? affectedRows,
  5. dynamic extra,
  6. List<ValidationErrorModel>? required,
})

Creates a new instance of ResponseModel.

The parameters can be used to specify the initial values for the response model's properties.

Implementation

ResponseModel({
  this.statusCode,
  this.message,
  this.data,
  this.affectedRows,
  this.extra,
  this.required,
});