Point.fromJson constructor

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

Implementation

Point.fromJson(Map<String, dynamic> json) {
  x = double.tryParse(json['x'].toString()) ?? 0.00;
  y = double.tryParse(json['y'].toString()) ?? 0.00;
}