VectorPathCommand.fromJson constructor

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

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();
  }
}