ResponseModel constructor

ResponseModel({
  1. required bool result,
  2. required String reason,
})

Constructs a new instance of the ResponseModel class.

Both result and reason must be provided, as they are required parameters.

Implementation

ResponseModel({
  required this.result,
  required this.reason,
});