ClosedVectorPath.fromJson constructor

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

Parses a ClosedVectorPath from TDLib JSON.

Implementation

factory ClosedVectorPath.fromJson(Map<String, dynamic> json) =>
    ClosedVectorPath(
      commands: _readList<VectorPathCommand>(json['commands'],
          (e) => _readObject(e, VectorPathCommand.fromJson)),
    );