fromJson static method

  1. @visibleForTesting
ErrorResponse? fromJson(
  1. dynamic jsonObject
)

Implementation

@visibleForTesting
static ErrorResponse? fromJson(jsonObject) {
  if (jsonObject == null) return null;
  var result = ErrorResponse._privateConstructor();

  result._code = jsonObject["code"];
  result._message = jsonObject["message"] ?? "";

  return result;
}