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