BucketRetentionPolicy.fromJson constructor

BucketRetentionPolicy.fromJson(
  1. Map _json
)

Implementation

BucketRetentionPolicy.fromJson(core.Map _json)
    : this(
        effectiveTime: _json.containsKey('effectiveTime')
            ? core.DateTime.parse(_json['effectiveTime'] as core.String)
            : null,
        isLocked: _json.containsKey('isLocked')
            ? _json['isLocked'] as core.bool
            : null,
        retentionPeriod: _json.containsKey('retentionPeriod')
            ? _json['retentionPeriod'] as core.String
            : null,
      );