HttpResponse.success constructor

HttpResponse.success(
  1. dynamic data, {
  2. Map<String, dynamic>? response,
  3. String? reqmsg,
})

Implementation

HttpResponse.success(this.data,
    {Map<String, dynamic>? response, String? reqmsg}) {
  ok = true;
  msg = reqmsg;
  if (response != null) {
    this.response = response;
  }
}