retrofit / retrofit2 / Converter / Factory / stringConverter

stringConverter

@Nullable open fun stringConverter(type: Type!, annotations: Array<Annotation!>!, retrofit: Retrofit!): Converter<*, String!>?

Returns a Converter for converting type to a String, or null if type cannot be handled by this factory. This is used to create converters for types specified by @Field, @FieldMap values, @Header, @HeaderMap, @Path, @Query, and values.