models property
Defines properties of 3D models in collection. Requires model source type.
Implementation
Future<List<ModelSourceModel>?> get models async {
return _style?.getStyleSourceProperty(id, "models").then((value) {
if (value.value != null) {
return (value.value as Map<Object?, Object?>).entries.map((entry) {
return ModelSourceModel.fromJson(entry.key as String,
Map<String, dynamic>.from(entry.value as Map));
}).toList();
} else {
return null;
}
});
}