toJson method

Map<String, dynamic> toJson()

to json map

Implementation

Map<String, dynamic> toJson() {
  Map<String, dynamic> result = {
    "status_code": statusCode,
    "msg": msg?.toJson(),
  };
  if (ret != null) {
    result.putIfAbsent("ret", () => ret?.toJson());
  }
  return result;
}