fromJson static method

OnlineProcessingConfig? fromJson(
  1. dynamic jsonObject
)

Implementation

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

  result.mode = jsonObject["mode"];
  result.url = jsonObject["url"];
  result.processParam = jsonObject["processParam"];
  result.imageFormat = jsonObject["imageFormat"];
  result.imageCompressionQuality = jsonObject["imageCompressionQuality"] == null ? null : jsonObject["imageCompressionQuality"].toDouble();

  return result;
}