CheckCompatibilityResponse.fromJson constructor

CheckCompatibilityResponse.fromJson(
  1. Map _json
)

Implementation

CheckCompatibilityResponse.fromJson(core.Map _json)
    : this(
        dimensionCompatibilities:
            _json.containsKey('dimensionCompatibilities')
                ? (_json['dimensionCompatibilities'] as core.List)
                    .map<DimensionCompatibility>((value) =>
                        DimensionCompatibility.fromJson(
                            value as core.Map<core.String, core.dynamic>))
                    .toList()
                : null,
        metricCompatibilities: _json.containsKey('metricCompatibilities')
            ? (_json['metricCompatibilities'] as core.List)
                .map<MetricCompatibility>((value) =>
                    MetricCompatibility.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );