BarcodeImageParams.fromJson constructor
Creates a BarcodeImageParams instance from a JSON representation.
Implementation
BarcodeImageParams.fromJson(Map<String, dynamic> json) {
imageFormat = json['imageFormat'] == null
? null
: BarcodeImageFormat.fromJson(json['imageFormat']);
textLocation = json['textLocation'] == null
? null
: CodeLocation.fromJson(json['textLocation']);
foregroundColor = json['foregroundColor'];
backgroundColor = json['backgroundColor'];
units = json['units'] == null ? null : GraphicsUnit.fromJson(json['units']);
resolution = json['resolution'];
imageHeight = json['imageHeight'];
imageWidth = json['imageWidth'];
rotationAngle = json['rotationAngle'];
}