Given the following JSON blob:
[
{
type: "audio",
title: "Audio example title",
},
{
type: "video",
title: "Video example title",
},
{
type: "audio",
title: "Another audio example title",
},
]
and two JSONModel model classes (AudioModel, VideoModel). Is it possible to have JSONModel automatically create either one of those model classes based on the type
property when it maps JSON to models?