CheckCompatibilityRequest.fromJson constructor

CheckCompatibilityRequest.fromJson(
  1. Map json_
)

Implementation

CheckCompatibilityRequest.fromJson(core.Map json_)
    : this(
        compatibilityFilter: json_.containsKey('compatibilityFilter')
            ? json_['compatibilityFilter'] as core.String
            : null,
        dimensionFilter: json_.containsKey('dimensionFilter')
            ? FilterExpression.fromJson(json_['dimensionFilter']
                as core.Map<core.String, core.dynamic>)
            : null,
        dimensions: json_.containsKey('dimensions')
            ? (json_['dimensions'] as core.List)
                .map((value) => Dimension.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        metricFilter: json_.containsKey('metricFilter')
            ? FilterExpression.fromJson(
                json_['metricFilter'] as core.Map<core.String, core.dynamic>)
            : null,
        metrics: json_.containsKey('metrics')
            ? (json_['metrics'] as core.List)
                .map((value) => Metric.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );