CSSFunctionRule.fromJson constructor
CSSFunctionRule.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CSSFunctionRule.fromJson(Map<String, dynamic> json) {
return CSSFunctionRule(
name: Value.fromJson(json['name'] as Map<String, dynamic>),
styleSheetId:
json.containsKey('styleSheetId')
? StyleSheetId.fromJson(json['styleSheetId'] as String)
: null,
origin: StyleSheetOrigin.fromJson(json['origin'] as String),
parameters:
(json['parameters'] as List)
.map(
(e) => CSSFunctionParameter.fromJson(e as Map<String, dynamic>),
)
.toList(),
children:
(json['children'] as List)
.map((e) => CSSFunctionNode.fromJson(e as Map<String, dynamic>))
.toList(),
);
}