fromJson static method

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

Implementation

@visibleForTesting
static OutputImageCrop? fromJson(jsonObject) {
  if (jsonObject == null) return null;
  return OutputImageCrop(
      OutputImageCropAspectRatio.getByValue(jsonObject["type"])!,
      size: Size.fromJson(jsonObject["size"]),
      padColor: _intToColor(jsonObject["padColor"]),
      returnOriginalRect: jsonObject["returnOriginalRect"]);
}