ReplicaConfiguration.fromJson constructor

ReplicaConfiguration.fromJson(
  1. Map json_
)

Implementation

ReplicaConfiguration.fromJson(core.Map json_)
    : this(
        cascadableReplica: json_.containsKey('cascadableReplica')
            ? json_['cascadableReplica'] as core.bool
            : null,
        failoverTarget: json_.containsKey('failoverTarget')
            ? json_['failoverTarget'] as core.bool
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        mysqlReplicaConfiguration:
            json_.containsKey('mysqlReplicaConfiguration')
                ? MySqlReplicaConfiguration.fromJson(
                    json_['mysqlReplicaConfiguration']
                        as core.Map<core.String, core.dynamic>)
                : null,
      );