DocumentationRule.fromJson constructor
DocumentationRule.fromJson(
- Object? j
Implementation
factory DocumentationRule.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return DocumentationRule(
selector: switch (json['selector']) {
null => '',
Object $1 => decodeString($1),
},
description: switch (json['description']) {
null => '',
Object $1 => decodeString($1),
},
deprecationDescription: switch (json['deprecationDescription']) {
null => '',
Object $1 => decodeString($1),
},
);
}