Vector2.fromJson constructor

Vector2.fromJson(
  1. Map<String, double> json
)

Implementation

Vector2.fromJson(Map<String, double> json) {
  x = json['x']!;
  y = json['y']!;
}