GeneratorParams.fromJson constructor
GeneratorParams.fromJson(
- Map<String, dynamic> json
)
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'] == null ? null : json['resolution'].toDouble();
resolutionX =
json['resolutionX'] == null ? null : json['resolutionX'].toDouble();
resolutionY =
json['resolutionY'] == null ? null : json['resolutionY'].toDouble();
dimensionX =
json['dimensionX'] == null ? null : json['dimensionX'].toDouble();
textSpace = json['textSpace'] == null ? null : json['textSpace'].toDouble();
units = AvailableGraphicsUnit.fromJson(json['units']);
sizeMode = AutoSizeMode.fromJson(json['sizeMode']);
barHeight = json['barHeight'] == null ? null : json['barHeight'].toDouble();
imageHeight =
json['imageHeight'] == null ? null : json['imageHeight'].toDouble();
imageWidth =
json['imageWidth'] == null ? null : json['imageWidth'].toDouble();
rotationAngle =
json['rotationAngle'] == null ? null : 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'] == null ? null : 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'] == null
? null
: json['wideNarrowRatio'].toDouble();
validateText = json['validateText'];
supplementData = json['supplementData'];
supplementSpace = json['supplementSpace'] == null
? null
: json['supplementSpace'].toDouble();
barWidthReduction = json['barWidthReduction'] == null
? null
: 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']);
}