RetentionPeriod.fromJson constructor
Implementation
factory RetentionPeriod.fromJson(Map<String, Object?> json) {
return RetentionPeriod(
number: (json[r'number'] as num?)?.toInt() ?? 0,
units: RetentionPeriodUnits.fromValue(json[r'units'] as String? ?? ''),
);
}