MessageStoragePolicy.fromJson constructor

MessageStoragePolicy.fromJson(
  1. Map json_
)

Implementation

MessageStoragePolicy.fromJson(core.Map json_)
    : this(
        allowedPersistenceRegions:
            json_.containsKey('allowedPersistenceRegions')
                ? (json_['allowedPersistenceRegions'] as core.List)
                    .map((value) => value as core.String)
                    .toList()
                : null,
        enforceInTransit: json_.containsKey('enforceInTransit')
            ? json_['enforceInTransit'] as core.bool
            : null,
      );