VectorPathCommand.fromJson constructor
a VectorPathCommand return type can be :
Implementation
factory VectorPathCommand.fromJson(Map<String, dynamic> json) {
switch(json["@type"]) {
case VectorPathCommandLine.CONSTRUCTOR:
return VectorPathCommandLine.fromJson(json);
case VectorPathCommandCubicBezierCurve.CONSTRUCTOR:
return VectorPathCommandCubicBezierCurve.fromJson(json);
default:
return const VectorPathCommand();
}
}