ElementStyle.fromMap constructor

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

Implementation

factory ElementStyle.fromMap(Map<String, dynamic> map) {
  return ElementStyle(
    margin: map['margin'] as String,
    padding: map['padding'] as String,
    width: map['width'] as String,
    height: map['height'] as String,
    fontSize: map['fontSize'] as String,
    fontColor: map['fontColor'] as String,
    fontWeight: map['fontWeight'] as String,
    align: map['align'] as String,
    innerAlign: map['innerAlign'] as String,
    textLines: map['textLines'] as String,
    color: map['color'] as String,
    backgroundColor: map['backgroundColor'] as String,
    borderRadius: map['borderRadius'] as String,
    borderColor: map['borderColor'] as String,
    borderWidth: map['borderWidth'] as String,
  );
}