contactsToJson method
Implementation
List<List<String>> contactsToJson() {
return contacts.map((contact) {
int idx = contacts.indexOf(contact);
List<String> list = [
"p",
contact,
contactRelays.length > idx ? contactRelays[idx] : "",
petnames.length > idx ? petnames[idx] : ""
];
return list;
}).toList();
}