toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final database = this.database;
  final clusterId = this.clusterId;
  final host = this.host;
  final port = this.port;
  return {
    'Database': database,
    if (clusterId != null) 'ClusterId': clusterId,
    if (host != null) 'Host': host,
    if (port != null) 'Port': port,
  };
}