HzyNormalResponse.success constructor

HzyNormalResponse.success({
  1. required dynamic netData,
  2. Map<String, dynamic>? response,
  3. String reqMsg = "请求成功",
})

Implementation

HzyNormalResponse.success({
  required dynamic netData,
  Map<String, dynamic>? response,
  String reqMsg = "请求成功",
}) {
  data = netData;
  msg = reqMsg;
  ok = true;
  if (response != null) {
    this.response = response;
  }
}