ComputeFlightEmissionsResponse.fromJson constructor

ComputeFlightEmissionsResponse.fromJson(
  1. Map json_
)

Implementation

ComputeFlightEmissionsResponse.fromJson(core.Map json_)
    : this(
        flightEmissions: json_.containsKey('flightEmissions')
            ? (json_['flightEmissions'] as core.List)
                .map((value) => FlightWithEmissions.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        modelVersion: json_.containsKey('modelVersion')
            ? ModelVersion.fromJson(
                json_['modelVersion'] as core.Map<core.String, core.dynamic>)
            : null,
      );