code: public void marshall(LogGroup logGroup, ProtocolMarshaller protocolMarshaller) {
  
          if (logGroup == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(logGroup.getLogGroupName(), LOGGROUPNAME_BINDING);
              protocolMarshaller.marshall(logGroup.getCreationTime(), CREATIONTIME_BINDING);
              protocolMarshaller.marshall(logGroup.getRetentionInDays(), RETENTIONINDAYS_BINDING);
              protocolMarshaller.marshall(logGroup.getMetricFilterCount(), METRICFILTERCOUNT_BINDING);
              protocolMarshaller.marshall(logGroup.getArn(), ARN_BINDING);
              protocolMarshaller.marshall(logGroup.getStoredBytes(), STOREDBYTES_BINDING);
              protocolMarshaller.marshall(logGroup.getKmsKeyId(), KMSKEYID_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.