fromJson static method

BrushLayerData fromJson(
  1. Map json
)
override

Implementation

static BrushLayerData fromJson(Map json) {
  var layer = BrushLayerData(
    color: Color(json['color']),
    strokeWidth: json['strokeWidth'],
    maxWidth: json['maxWidth'],
  );
  layer.copyFrom(json);
  return layer;
}