toJson method
Returns a JSON representation of GeneratorParams.
Implementation
Map<String, dynamic> toJson() {
return {
'TypeOfBarcode': typeOfBarcode,
'Text': text,
'TwoDDisplayText': twoDDisplayText,
'TextLocation': textLocation,
'TextAlignment': textAlignment,
'TextColor': textColor,
'Font': font,
'FontSizeMode': fontSizeMode,
'NoWrap': noWrap,
'Resolution': resolution,
'ResolutionX': resolutionX,
'ResolutionY': resolutionY,
'DimensionX': dimensionX,
'TextSpace': textSpace,
'Units': units,
'SizeMode': sizeMode,
'BarHeight': barHeight,
'ImageHeight': imageHeight,
'ImageWidth': imageWidth,
'RotationAngle': rotationAngle,
'Padding': padding,
'CaptionAbove': captionAbove,
'CaptionBelow': captionBelow,
'BackColor': backColor,
'BarColor': barColor,
'BorderColor': borderColor,
'BorderWidth': borderWidth,
'BorderDashStyle': borderDashStyle,
'BorderVisible': borderVisible,
'EnableChecksum': enableChecksum,
'EnableEscape': enableEscape,
'FilledBars': filledBars,
'AlwaysShowChecksum': alwaysShowChecksum,
'WideNarrowRatio': wideNarrowRatio,
'ValidateText': validateText,
'SupplementData': supplementData,
'SupplementSpace': supplementSpace,
'BarWidthReduction': barWidthReduction,
'UseAntiAlias': useAntiAlias,
'AustralianPost': australianPost,
'Aztec': aztec,
'Codabar': codabar,
'Codablock': codablock,
'Code16K': code16K,
'Coupon': coupon,
'DataBar': dataBar,
'DataMatrix': dataMatrix,
'DotCode': dotCode,
'ITF': ITF,
'MaxiCode': maxiCode,
'Pdf417': pdf417,
'Postal': postal,
'QR': QR,
'PatchCode': patchCode,
'Code128': code128,
'HanXin': hanXin
};
}