fromJson static method

VerticalLineTool fromJson(
  1. Map<String, dynamic> json
)
override

Implementation

static VerticalLineTool fromJson(Map<String, dynamic> json) {
  return VerticalLineTool(
    id: json['id'],
    xPosition: json['xPosition'],
    timePoint: json['timePoint'] != null
        ? DateTime.fromMillisecondsSinceEpoch(json['timePoint'])
        : null,
    color: Color(json['color']),
    strokeWidth: json['strokeWidth'],
  );
}