Class JSONAPIRequestBodyConverter<T>

  • All Implemented Interfaces:
    retrofit2.Converter<T,​okhttp3.RequestBody>

    public class JSONAPIRequestBodyConverter<T>
    extends Object
    implements retrofit2.Converter<T,​okhttp3.RequestBody>
    JSON API request body converter implementation.
    Author:
    jbegic
    • Constructor Detail

      • JSONAPIRequestBodyConverter

        public JSONAPIRequestBodyConverter​(ResourceConverter converter)
        Creates new JSONAPIRequestBodyConverter.
        Parameters:
        converter - ResourceConverter converter instance
    • Method Detail

      • convert

        public okhttp3.RequestBody convert​(T t)
                                    throws IOException
        Specified by:
        convert in interface retrofit2.Converter<T,​okhttp3.RequestBody>
        Throws:
        IOException