fromJson method Null safety

CodeResult fromJson(
  1. dynamic json
)

Implementation

static CodeResult fromJson(dynamic json) {
  return CodeResult(
      message: json["message"],
      statusCode: json["status_code"],
      exist: json["data"]["exist"],
      code: json["data"]["code"]);
}