Point.fromJson constructor

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

Parse from a json

Implementation

factory Point.fromJson(Map<String, dynamic> json) => Point(
      x: json['x'],
      y: json['y'],
    );