Model type and sourceMap as part of resource