Airport.fromJson constructor

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

Implementation

factory Airport.fromJson(Map<String, dynamic> json) => Airport(
      lat: json['lat'] as double,
      lon: json['lon'] as double,
      name: json['name'] as String,
      city: json['city'] as String,
      state: json['state'] as String,
      country: json['country'] as String,
      elevation: json['elevation'] as int,
      icao: json['icao'] as String,
    );