ClosedVectorPath.fromJson constructor

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

Parse from a json

Implementation

factory ClosedVectorPath.fromJson(Map<String, dynamic> json) => ClosedVectorPath(
  commands: List<VectorPathCommand>.from((json['commands'] ?? []).map((item) => VectorPathCommand.fromJson(item)).toList()),
);