toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (hostAddresses != null) 'hostAddresses': hostAddresses!,
  if (password != null) 'password': password!,
  if (replicaSet != null) 'replicaSet': replicaSet!,
  if (secretManagerStoredPassword != null)
    'secretManagerStoredPassword': secretManagerStoredPassword!,
  if (srvConnectionFormat != null)
    'srvConnectionFormat': srvConnectionFormat!,
  if (sslConfig != null) 'sslConfig': sslConfig!,
  if (standardConnectionFormat != null)
    'standardConnectionFormat': standardConnectionFormat!,
  if (username != null) 'username': username!,
};