fromJson static method

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

Implementation

static VectorPathCommandCubicBezierCurve? fromJson(
    Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return VectorPathCommandCubicBezierCurve(
    startControlPoint:
        Point.fromJson(json['start_control_point'] as Map<String, dynamic>?)!,
    endControlPoint:
        Point.fromJson(json['end_control_point'] as Map<String, dynamic>?)!,
    endPoint: Point.fromJson(json['end_point'] as Map<String, dynamic>?)!,
  );
}