fromJson static method

InitResponse? fromJson(
  1. dynamic jsonObject
)

Implementation

static InitResponse? fromJson(jsonObject) {
  if (jsonObject == null) return null;
  var result = new InitResponse();

  result.success = jsonObject["success"];
  result.error = InitException.fromJson(jsonObject["error"]);

  return result;
}