fromJson static method

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

Implementation

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

  result._imageData = _bytesFromBase64(jsonObject["imageData"]);
  result._imageUrl = jsonObject["imageUrl"];

  return result;
}