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_.containsKey('maxAge')
            ? json_['maxAge'] as core.String
            : null,
        maxNumVersions: json_.containsKey('maxNumVersions')
            ? json_['maxNumVersions'] as core.int
            : null,
        union: json_.containsKey('union')
            ? Union.fromJson(
                json_['union'] as core.Map<core.String, core.dynamic>)
            : null,
      );