CSSContainerQuery.fromJson constructor
CSSContainerQuery.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CSSContainerQuery.fromJson(Map<String, dynamic> json) {
return CSSContainerQuery(
text: json['text'] as String,
range: json.containsKey('range')
? SourceRange.fromJson(json['range'] as Map<String, dynamic>)
: null,
styleSheetId: json.containsKey('styleSheetId')
? StyleSheetId.fromJson(json['styleSheetId'] as String)
: null,
name: json.containsKey('name') ? json['name'] as String : null,
physicalAxes: json.containsKey('physicalAxes')
? dom.PhysicalAxes.fromJson(json['physicalAxes'] as String)
: null,
logicalAxes: json.containsKey('logicalAxes')
? dom.LogicalAxes.fromJson(json['logicalAxes'] as String)
: null,
);
}