CrossClusterReplicationConfig.fromJson constructor

CrossClusterReplicationConfig.fromJson(
  1. Map json_
)

Implementation

CrossClusterReplicationConfig.fromJson(core.Map json_)
  : this(
      clusterRole: json_['clusterRole'] as core.String?,
      membership:
          json_.containsKey('membership')
              ? Membership.fromJson(
                json_['membership'] as core.Map<core.String, core.dynamic>,
              )
              : null,
      primaryCluster:
          json_.containsKey('primaryCluster')
              ? RemoteCluster.fromJson(
                json_['primaryCluster']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
      secondaryClusters:
          (json_['secondaryClusters'] as core.List?)
              ?.map(
                (value) => RemoteCluster.fromJson(
                  value as core.Map<core.String, core.dynamic>,
                ),
              )
              .toList(),
      updateTime: json_['updateTime'] as core.String?,
    );