toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (action != null) 'action': action!,
      if (description != null) 'description': description!,
      if (direction != null) 'direction': direction!,
      if (disabled != null) 'disabled': disabled!,
      if (enableLogging != null) 'enableLogging': enableLogging!,
      if (kind != null) 'kind': kind!,
      if (match != null) 'match': match!,
      if (priority != null) 'priority': priority!,
      if (ruleName != null) 'ruleName': ruleName!,
      if (ruleTupleCount != null) 'ruleTupleCount': ruleTupleCount!,
      if (securityProfileGroup != null)
        'securityProfileGroup': securityProfileGroup!,
      if (targetResources != null) 'targetResources': targetResources!,
      if (targetSecureTags != null) 'targetSecureTags': targetSecureTags!,
      if (targetServiceAccounts != null)
        'targetServiceAccounts': targetServiceAccounts!,
      if (tlsInspect != null) 'tlsInspect': tlsInspect!,
    };