LabelBitmapStyle.fromMap constructor

LabelBitmapStyle.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory LabelBitmapStyle.fromMap(Map<String, dynamic> map) {
  return LabelBitmapStyle(
    posX: map['posX'],
    posY: map['posY'],
    algorithm: ImageAlgorithm.values.firstWhere((e) => e.toString() == 'ImageAlgorithm.${map['algorithm']}'),
    value: map['value'],
    width: map['width'],
    height: map['height'],
  );
}