Vector2.fromJson constructor

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

Implementation

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