GeneratorParams.fromJson constructor

GeneratorParams.fromJson(
  1. Map<String, dynamic> json
)

Creates a GeneratorParams instance from a JSON representation.

Implementation

GeneratorParams.fromJson(Map<String, dynamic> json) {
  typeOfBarcode = EncodeBarcodeType.fromJson(json['typeOfBarcode']);
  text = json['text'];
  twoDDisplayText = json['twoDDisplayText'];
  textLocation = CodeLocation.fromJson(json['textLocation']);
  textAlignment = TextAlignment.fromJson(json['textAlignment']);
  textColor = json['textColor'];
  font = FontParams.fromJson(json['font']);
  fontSizeMode = FontMode.fromJson(json['fontSizeMode']);
  noWrap = json['noWrap'];
  resolution = json['resolution']?.toDouble();
  resolutionX = json['resolutionX']?.toDouble();
  resolutionY = json['resolutionY']?.toDouble();
  dimensionX = json['dimensionX']?.toDouble();
  textSpace = json['textSpace']?.toDouble();
  units = AvailableGraphicsUnit.fromJson(json['units']);
  sizeMode = AutoSizeMode.fromJson(json['sizeMode']);
  barHeight = json['barHeight']?.toDouble();
  imageHeight = json['imageHeight']?.toDouble();
  imageWidth = json['imageWidth']?.toDouble();
  rotationAngle = json['rotationAngle']?.toDouble();
  padding = Padding.fromJson(json['padding']);
  captionAbove = CaptionParams.fromJson(json['captionAbove']);
  captionBelow = CaptionParams.fromJson(json['captionBelow']);
  backColor = json['backColor'];
  barColor = json['barColor'];
  borderColor = json['borderColor'];
  borderWidth = json['borderWidth']?.toDouble();
  borderDashStyle = BorderDashStyle.fromJson(json['borderDashStyle']);
  borderVisible = json['borderVisible'];
  enableChecksum = EnableChecksum.fromJson(json['enableChecksum']);
  enableEscape = json['enableEscape'];
  filledBars = json['filledBars'];
  alwaysShowChecksum = json['alwaysShowChecksum'];
  wideNarrowRatio = json['wideNarrowRatio']?.toDouble();
  validateText = json['validateText'];
  supplementData = json['supplementData'];
  supplementSpace = json['supplementSpace']?.toDouble();
  barWidthReduction = json['barWidthReduction']?.toDouble();
  useAntiAlias = json['useAntiAlias'];
  australianPost = AustralianPostParams.fromJson(json['australianPost']);
  aztec = AztecParams.fromJson(json['aztec']);
  codabar = CodabarParams.fromJson(json['codabar']);
  codablock = CodablockParams.fromJson(json['codablock']);
  code16K = Code16KParams.fromJson(json['code16K']);
  coupon = CouponParams.fromJson(json['coupon']);
  dataBar = DataBarParams.fromJson(json['dataBar']);
  dataMatrix = DataMatrixParams.fromJson(json['dataMatrix']);
  dotCode = DotCodeParams.fromJson(json['dotCode']);
  ITF = ITFParams.fromJson(json['ITF']);
  maxiCode = MaxiCodeParams.fromJson(json['maxiCode']);
  pdf417 = Pdf417Params.fromJson(json['pdf417']);
  postal = PostalParams.fromJson(json['postal']);
  QR = QrParams.fromJson(json['QR']);
  patchCode = PatchCodeParams.fromJson(json['patchCode']);
  code128 = Code128Params.fromJson(json['code128']);
  hanXin = HanXinParams.fromJson(json['hanXin']);
}