Engines.fromJson constructor

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

Implementation

Engines.fromJson(Map<String, dynamic> json) {
  _isp = Isp.fromJson(json['isp']);
  _thrustSeaLevel = ThrustSeaLevel.fromJson(json['thrust_sea_level']);
  _thrustVacuum = ThrustSeaLevel.fromJson(json['thrust_vacuum']);
  _number = json['number'];
  _type = json['type'];
  _version = json['version'];
  _layout = json['layout'];
  _engineLossMax = json['engine_loss_max'];
  _propellant1 = json['propellant_1'];
  _propellant2 = json['propellant_2'];
  _thrustToWeight = json['thrust_to_weight'];
}