toJson method

Map<String, dynamic> toJson()

Implementation

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