DocumentationRule.fromJson constructor

DocumentationRule.fromJson(
  1. 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),
    },
  );
}