factory Elevation.fromJson(Map<String, dynamic> json) { return Elevation( unit: (json['unit'] as String).toAngleUnits(), value: json['value'] as double, ); }