結果が次のようなサーバーに送信するために Retrofit を使用して投稿を作成する方法を知りたいです。
{
"facebookProfile":{
"name":"String",
"education_history":"String",
"birthday":"String",
"hometown":"String",
"email":"String",
"location":"String"
},
"picture":{
"selfieURL":"String",
"documentIDs":{
"frontURL":"String",
"backURL":"String"
}
}
}
ID検証 -
public class IDVerification {
private FacebookProfile facebookProfile;
private Customer customer;
private Location location;
private Picture picture;
private Audio audio;
}
FacebookProfile - (ガッターとセッターがあります)
public class FacebookProfile implements Serializable{
private String name;
private String education_history;
private String birthday;
private String hometown;
private String email;
private String location;
}
画像 - (ゲッターとセッターあり)
public class Picture implements Serializable{
private String selfieURL;
private DocumentIDs documentIDs;
}