toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final maxAgeRule = this.maxAgeRule;
  final maxCountRule = this.maxCountRule;
  return {
    if (maxAgeRule != null) 'MaxAgeRule': maxAgeRule,
    if (maxCountRule != null) 'MaxCountRule': maxCountRule,
  };
}