LabelBarCodeStyle.fromMap constructor
LabelBarCodeStyle.fromMap(
- Map<String, dynamic> map
)
Implementation
factory LabelBarCodeStyle.fromMap(Map<String, dynamic> map) {
return LabelBarCodeStyle(
posX: map['posX'],
posY: map['posY'],
dotWidth: map['dotWidth'],
barHeight: map['barHeight'],
readable: HumanReadable.values.firstWhere((e) => e.toString() == 'HumanReadable.${map['readable']}'),
symbology: Symbology.values.firstWhere((e) => e.toString() == 'Symbology.${map['symbology']}'),
align: AlignLabel.values.firstWhere((e) => e.toString() == 'AlignLabel.${map['align']}'),
rotate: Rotate.values.firstWhere((e) => e.toString() == 'Rotate.${map['rotate']}'),
width: map['width'],
height: map['height'],
);
}