DemoteMasterContext.fromJson constructor

DemoteMasterContext.fromJson(
  1. Map _json
)

Implementation

DemoteMasterContext.fromJson(core.Map _json)
    : this(
        kind: _json.containsKey('kind') ? _json['kind'] as core.String : null,
        masterInstanceName: _json.containsKey('masterInstanceName')
            ? _json['masterInstanceName'] as core.String
            : null,
        replicaConfiguration: _json.containsKey('replicaConfiguration')
            ? DemoteMasterConfiguration.fromJson(_json['replicaConfiguration']
                as core.Map<core.String, core.dynamic>)
            : null,
        skipReplicationSetup: _json.containsKey('skipReplicationSetup')
            ? _json['skipReplicationSetup'] as core.bool
            : null,
        verifyGtidConsistency: _json.containsKey('verifyGtidConsistency')
            ? _json['verifyGtidConsistency'] as core.bool
            : null,
      );