com.recurly.v3.FileSerializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api-client Show documentation
Show all versions of api-client Show documentation
The official Java client for Recurly's V3 API.
package com.recurly.v3;
import com.recurly.v3.resources.BinaryFile;
import java.lang.reflect.Type;
public class FileSerializer {
public T deserialize(byte[] responseBody, final Type resourceClass) {
BinaryFile file = new BinaryFile();
file.setData(responseBody);
return (T) file;
}
}