fromMap static method

VectorPathCommandCubicBezierCurve? fromMap(
  1. Map<String, dynamic>? _map
)
override

Construct from Map.

Implementation

static VectorPathCommandCubicBezierCurve? fromMap(
    Map<String, dynamic>? _map) {
  if (_map == null) return null;
  var _ = _map["@type"];
  if (_ != CONSTRUCTOR) return null;
  var extra = _map['@extra'];
  var clientId = _map['@clientId'];
  var start_control_point = Point.fromMap(_map['start_control_point'])!;
  var end_control_point = Point.fromMap(_map['end_control_point'])!;
  var end_point = Point.fromMap(_map['end_point'])!;
  return VectorPathCommandCubicBezierCurve(
    extra: extra,
    clientId: clientId,
    start_control_point: start_control_point,
    end_control_point: end_control_point,
    end_point: end_point,
  );
}