ReplicaConfiguration.fromJson constructor

ReplicaConfiguration.fromJson(
  1. Map _json
)

Implementation

ReplicaConfiguration.fromJson(core.Map _json)
    : this(
        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,
      );