EmissionsGramsPerPax.fromJson constructor

EmissionsGramsPerPax.fromJson(
  1. Map json_
)

Implementation

EmissionsGramsPerPax.fromJson(core.Map json_)
    : this(
        business: json_.containsKey('business')
            ? json_['business'] as core.int
            : null,
        economy: json_.containsKey('economy')
            ? json_['economy'] as core.int
            : null,
        first: json_.containsKey('first') ? json_['first'] as core.int : null,
        premiumEconomy: json_.containsKey('premiumEconomy')
            ? json_['premiumEconomy'] as core.int
            : null,
      );