toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (driverName != null) {
    _json[r'DriverName'] = driverName;
  }
  if (dataSource != null) {
    _json[r'DataSource'] = dataSource;
  }
  if (dataSourceReplicas != null) {
    _json[r'DataSourceReplicas'] = dataSourceReplicas;
  }
  if (maxIdleConns != null) {
    _json[r'MaxIdleConns'] = maxIdleConns;
  }
  if (maxOpenConns != null) {
    _json[r'MaxOpenConns'] = maxOpenConns;
  }
  if (trace != null) {
    _json[r'Trace'] = trace;
  }
  if (atRestEncryptKey != null) {
    _json[r'AtRestEncryptKey'] = atRestEncryptKey;
  }
  return _json;
}