NPoint.fromJson constructor

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

Implementation

factory NPoint.fromJson(Map<String, dynamic> json) {
  return NPoint(json['x']?.toDouble() ?? 0.0, json['y']?.toDouble() ?? 0.0);
}