Point.fromJson constructor

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

Implementation

factory Point.fromJson(Map<String, dynamic> json) {
  return Point(
    x: json['X'] as double?,
    y: json['Y'] as double?,
  );
}