VectorPathCommandCubicBezierCurve.fromJson constructor

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

Parses a VectorPathCommandCubicBezierCurve from TDLib JSON.

Implementation

factory VectorPathCommandCubicBezierCurve.fromJson(
        Map<String, dynamic> json) =>
    VectorPathCommandCubicBezierCurve(
      startControlPoint:
          _readObject(json['start_control_point'], Point.fromJson),
      endControlPoint: _readObject(json['end_control_point'], Point.fromJson),
      endPoint: _readObject(json['end_point'], Point.fromJson),
    );