fromJson static method

PatchRetentionRule fromJson(
  1. dynamic value
)

Returns a new PatchRetentionRule instance and imports

Implementation

// ignore: prefer_constructors_over_static_methods
static PatchRetentionRule fromJson(dynamic value) {
  final json = value.cast<String, dynamic>();
  return PatchRetentionRule(
    type: PatchRetentionRuleTypeEnum.fromJson(json[r'type']),
    everySeconds: mapValueOfType<int>(json, r'everySeconds'),
    shardGroupDurationSeconds:
        mapValueOfType<int>(json, r'shardGroupDurationSeconds'),
  );
}