# EncodeImageOptions.fromJson constructor

EncodeImageOptions.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory EncodeImageOptions.fromJson(Map<String, dynamic> json) =>
        EncodeImageOptions(
          quality: json.containsKey("quality") ? (json["quality"] as int) : -1,
          format: json.containsKey("format")
              ? EncodingFormat.values.byName(json["format"] as String)
              : EncodingFormat.JPEG,
        );