RuleList.fromMap constructor

RuleList.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory RuleList.fromMap(Map<String, dynamic> map) {
  return RuleList(
    total: map['total'],
    rules: List<Rule>.from(map['rules'].map((r) => Rule.fromMap(r))),
  );
}