Vector2.fromJSON constructor

Vector2.fromJSON(
  1. List<double>? json
)

Implementation

Vector2.fromJSON(List<double>? json) {
  if (json != null) {
    x = json[0];
    y = json[1];
  }
}