MediaQueryExpression.fromJson constructor
MediaQueryExpression.fromJson(
- Map<String, dynamic> json
)
Implementation
factory MediaQueryExpression.fromJson(Map<String, dynamic> json) {
return MediaQueryExpression(
value: json['value'] as num,
unit: json['unit'] as String,
feature: json['feature'] as String,
valueRange: json.containsKey('valueRange')
? SourceRange.fromJson(json['valueRange'] as Map<String, dynamic>)
: null,
computedLength: json.containsKey('computedLength')
? json['computedLength'] as num
: null,
);
}