DemoteMasterContext.fromJson constructor
DemoteMasterContext.fromJson(
- 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,
);