code: public void marshall(GroupType groupType, ProtocolMarshaller protocolMarshaller) {
  
          if (groupType == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(groupType.getGroupName(), GROUPNAME_BINDING);
              protocolMarshaller.marshall(groupType.getUserPoolId(), USERPOOLID_BINDING);
              protocolMarshaller.marshall(groupType.getDescription(), DESCRIPTION_BINDING);
              protocolMarshaller.marshall(groupType.getRoleArn(), ROLEARN_BINDING);
              protocolMarshaller.marshall(groupType.getPrecedence(), PRECEDENCE_BINDING);
              protocolMarshaller.marshall(groupType.getLastModifiedDate(), LASTMODIFIEDDATE_BINDING);
              protocolMarshaller.marshall(groupType.getCreationDate(), CREATIONDATE_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.