toJson method

  1. @visibleForTesting
Map<String, dynamic> toJson()

Implementation

@visibleForTesting
Map<String, dynamic> toJson() => {
      "mode": mode.value,
      "url": url,
      "imageFormat": imageFormat.value,
      "imageCompressionQuality": imageCompressionQuality,
      "processParams": processParams.toJson(),
    }.clearNulls();