class ReadableOptinMapper implements Mapper<Optin, ReadableOptin> {


  @Override
  public ReadableOptin convert(Optin source, MerchantStore store, Language language) {<FILL_FUNCTION_BODY>}

  @Override
  public ReadableOptin merge(Optin source, ReadableOptin destination, MerchantStore store,
                             Language language) {
    return destination;
  }
}

    ReadableOptin optinEntity = new ReadableOptin();
    optinEntity.setCode(source.getCode());
    optinEntity.setDescription(source.getDescription());
    optinEntity.setOptinType(source.getOptinType().name());
    return optinEntity;
  
<no_super_class>