GcRule.fromJson constructor

GcRule.fromJson(
  1. Map json_
)

Implementation

GcRule.fromJson(core.Map json_)
  : this(
      intersection:
          json_.containsKey('intersection')
              ? Intersection.fromJson(
                json_['intersection'] as core.Map<core.String, core.dynamic>,
              )
              : null,
      maxAge: json_['maxAge'] as core.String?,
      maxNumVersions: json_['maxNumVersions'] as core.int?,
      union:
          json_.containsKey('union')
              ? Union.fromJson(
                json_['union'] as core.Map<core.String, core.dynamic>,
              )
              : null,
    );