A Converter
which supports converting strings and both primitives and their boxed types to
text/plain
bodies.
Download the latest JAR or grab via Maven:
<dependency>
<groupId>com.squareup.retrofit2</groupId>
<artifactId>converter-scalars</artifactId>
<version>latest.version</version>
</dependency>
or Gradle:
implementation 'com.squareup.retrofit2:converter-scalars:latest.version'
Snapshots of the development version are available in Sonatype's snapshots
repository.