RuleUsage.fromJson constructor

RuleUsage.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory RuleUsage.fromJson(Map<String, dynamic> json) {
  return RuleUsage(
    styleSheetId: StyleSheetId.fromJson(json['styleSheetId'] as String),
    startOffset: json['startOffset'] as num,
    endOffset: json['endOffset'] as num,
    used: json['used'] as bool? ?? false,
  );
}