String encodeObjectListJson(Iterable<O> list) => Json.encode( list.toList(), toEncodable: jsonToEncodable, removeNullFields: true, );