fromJson static method
Returns a new RetentionRule instance and imports
Implementation
// ignore: prefer_constructors_over_static_methods
static RetentionRule fromJson(dynamic value) {
final json = value.cast<String, dynamic>();
return RetentionRule(
type: RetentionRuleTypeEnum.fromJson(json[r'type']),
everySeconds: mapValueOfType<int>(json, r'everySeconds'),
shardGroupDurationSeconds:
mapValueOfType<int>(json, r'shardGroupDurationSeconds'),
);
}