toJson method

Map<String, dynamic> toJson()

Converts the Server instance back to JSON

Implementation

Map<String, dynamic> toJson() {
  return {
    'url': url,
    if (description != null) 'description': description,
  };
}