private JsonElement serializeElements(final JsonSerializationContext context,
                                          final Map<Integer, Element> elementsMap) {
        final Type elementsList = new TypeToken<List<Element>>() {
        }.getType();
        return context.serialize(populateElements(elementsMap), elementsList);
    }
Returns serialized json element containing the elements

@param context     Serializer context
@param elementsMap elements map
@return JsonElement
mesh/src/main/java/no/nordicsemi/android/mesh/transport/NodeDeserializer.java