LabelAreaStyle.fromMap constructor

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

Implementation

factory LabelAreaStyle.fromMap(Map<String, dynamic> map) {
  return LabelAreaStyle(
    style: Shape.values.firstWhere((e) => e.toString() == 'Shape.${map['style']}'),
    width: map['width'],
    height: map['height'],
    posX: map['posX'],
    posY: map['posY'],
    endX: map['endX'],
    endY: map['endY'],
    thick: map['thick'],
  );
}