so, I have to use firebase remote config in a project for some clients, and I am using a key to store a value and the value is not like a String, etc... but rather an array. let's say that the value looks like this:
[
{
"owner": "jon",
"year": 2019
},
{
"owner": "Alex",
"versionCode": 2032
},
...
]
how am I supposed to get the owner and year and save them in a list of Laptops with gson?
Laptops.java look like this btw:
public class Laptop() {
private String owner;
private int year;
// constructor
...
// getters and setters
...
}
The answer from this post: Can I declare an array to Firebase Remote config? kinda helped but the answer is in kotlin, and I think the syntax is not exactly the same in java Thanks in advance!