toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (allowed != null) 'allowed': allowed!,
      if (denied != null) 'denied': denied!,
      if (destinationIpRanges != null)
        'destinationIpRanges': destinationIpRanges!,
      if (direction != null) 'direction': direction!,
      if (exposedServices != null) 'exposedServices': exposedServices!,
      if (sourceIpRanges != null) 'sourceIpRanges': sourceIpRanges!,
    };