toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final serverName = this.serverName;
  return {
    if (serverName != null) 'serverName': serverName,
  };
}