Capsule.fromJson constructor
Implementation
Capsule.fromJson(Map<String, dynamic> json) {
_reuseCount = json['reuse_count'];
_waterLandings = json['water_landings'];
_landLandings = json['land_landings'];
_lastUpdate = json['last_update'];
_launches = json['launches']?.cast<String>();
_serial = json['serial'];
_status = json['status'];
_type = json['type'];
_id = json['id'];
}