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