fromJson static method

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

Implementation

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

  result._crop = OutputImageCrop.fromJson(jsonObject["crop"]);
  result._backgroundColor = _intToColor(jsonObject["backgroundColor"]);

  return result;
}