FlightWaypoint.fromJson constructor
FlightWaypoint.fromJson(
- Map<String, dynamic> json
)
Implementation
FlightWaypoint.fromJson(Map<String, dynamic> json)
: this.location = json['location'] != null
? FlightLocation.fromJson(json['location'])
: null,
this.vector = json['vector'] != null
? FlightVector.fromJson(json['vector'])
: null,
this.heading = json['heading'] != null
? int.parse(json['heading'].toString())
: null,
this.cornerRadiusInMeters = json['cornerRadiusInMeters'] != null
? double.parse(json['cornerRadiusInMeters'].toString())
: null,
this.turnMode = EnumConvertion.convertFromString(
FlightWaypointTurnMode.values, json['turnMode']),
this.gimbalPitch = json['gimbalPitch'] != null
? double.parse(json['gimbalPitch'].toString())
: null;