SimpleLine.fromJson constructor

SimpleLine.fromJson(
  1. Map<String, dynamic> data
)

Implementation

factory SimpleLine.fromJson(Map<String, dynamic> data) {
  return SimpleLine.data(
    path: DrawPath.fromJson(data['path'] as Map<String, dynamic>),
    paint: jsonToPaint(data['paint'] as Map<String, dynamic>),
  );
}