Landmark.fromJson constructor

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

Implementation

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