DemoteMasterConfiguration.fromJson constructor

DemoteMasterConfiguration.fromJson(
  1. Map _json
)

Implementation

DemoteMasterConfiguration.fromJson(core.Map _json)
    : this(
        kind: _json.containsKey('kind') ? _json['kind'] as core.String : null,
        mysqlReplicaConfiguration:
            _json.containsKey('mysqlReplicaConfiguration')
                ? DemoteMasterMySqlReplicaConfiguration.fromJson(
                    _json['mysqlReplicaConfiguration']
                        as core.Map<core.String, core.dynamic>)
                : null,
      );