RetainRule.fromJson constructor

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

Implementation

factory RetainRule.fromJson(Map<String, dynamic> json) {
  return RetainRule(
    count: json['Count'] as int?,
    interval: json['Interval'] as int?,
    intervalUnit:
        (json['IntervalUnit'] as String?)?.toRetentionIntervalUnitValues(),
  );
}