fromJson static method

UserJsonResult fromJson(
  1. dynamic json
)

Implementation

static UserJsonResult fromJson(dynamic json) {
  return UserJsonResult(
      message: json["message"],
      statusCode: json["status_code"],
      user: json["status_code"] == 200 ? User.fromJson(json['data']) : null);
}