# TiffGeneratorParameters.fromJson constructor

TiffGeneratorParameters.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory TiffGeneratorParameters.fromJson(Map<String, dynamic> json) =>
        TiffGeneratorParameters(
          compression: json.containsKey("compression")
              ? CompressionMode.values.byName(json["compression"] as String)
              : CompressionMode.LZW,
          jpegQuality:
              json.containsKey("jpegQuality") ? (json["jpegQuality"] as int) : 80,
          zipCompressionLevel: json.containsKey("zipCompressionLevel")
              ? (json["zipCompressionLevel"] as int)
              : 6,
          dpi: json.containsKey("dpi") ? (json["dpi"] as int) : 72,
          userFields: json.containsKey("userFields")
              ? (json["userFields"] as List<dynamic>)
                  .map((it) => UserField.fromJson(it as Map<String, dynamic>))
                  .toList()
              : [],
          binarizationFilter: json.containsKey("binarizationFilter")
              ? (json["binarizationFilter"] != null
                  ? ParametricFilter.fromJson(
                      json["binarizationFilter"] as Map<String, dynamic>)
                  : null)
              : null,
        );