deserializeOptList
fun <T : ModelObject> deserializeOptList(jsonArray: JSONArray?, serializer: ModelObject.Serializer<T>): List<T>?
Parse a JSONArray to a List of objects that extend ModelObject. Result can also be null if the object is null.
Return
The List of objects from the JSONArray.
Parameters
jsonArray
The JSONArray to be parsed.
serializer
The serializer of the ModelObject class to be used.