CleanupPolicy.fromJson constructor

CleanupPolicy.fromJson(
  1. Map json_
)

Implementation

CleanupPolicy.fromJson(core.Map json_)
    : this(
        action: json_.containsKey('action')
            ? json_['action'] as core.String
            : null,
        condition: json_.containsKey('condition')
            ? CleanupPolicyCondition.fromJson(
                json_['condition'] as core.Map<core.String, core.dynamic>)
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        mostRecentVersions: json_.containsKey('mostRecentVersions')
            ? CleanupPolicyMostRecentVersions.fromJson(
                json_['mostRecentVersions']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );