# PdfConfiguration.fromJson constructor

PdfConfiguration.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory PdfConfiguration.fromJson(Map<String, dynamic> json) =>
        PdfConfiguration(
          attributes: json.containsKey("attributes")
              ? PdfAttributes.fromJson(json["attributes"] as Map<String, dynamic>)
              : PdfAttributes(),
          pageSize: json.containsKey("pageSize")
              ? PageSize.values.byName(json["pageSize"] as String)
              : PageSize.A4,
          pageDirection: json.containsKey("pageDirection")
              ? PageDirection.values.byName(json["pageDirection"] as String)
              : PageDirection.PORTRAIT,
          pageFit: json.containsKey("pageFit")
              ? PageFit.values.byName(json["pageFit"] as String)
              : PageFit.FIT_IN,
          dpi: json.containsKey("dpi") ? (json["dpi"] as int) : 72,
          jpegQuality:
              json.containsKey("jpegQuality") ? (json["jpegQuality"] as int) : 80,
          resamplingMethod: json.containsKey("resamplingMethod")
              ? ResamplingMethod.values.byName(json["resamplingMethod"] as String)
              : ResamplingMethod.NONE,
        );