CheckCompatibilityRequest.fromJson constructor
CheckCompatibilityRequest.fromJson(
- 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<Dimension>((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<Metric>((value) => Metric.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);