FlightWithEmissions.fromJson constructor

FlightWithEmissions.fromJson(
  1. Map json_
)

Implementation

FlightWithEmissions.fromJson(core.Map json_)
    : this(
        emissionsGramsPerPax: json_.containsKey('emissionsGramsPerPax')
            ? EmissionsGramsPerPax.fromJson(json_['emissionsGramsPerPax']
                as core.Map<core.String, core.dynamic>)
            : null,
        flight: json_.containsKey('flight')
            ? Flight.fromJson(
                json_['flight'] as core.Map<core.String, core.dynamic>)
            : null,
      );