fromMap static method
Implementation
static PlayStoreEntity? fromMap(Object? o,
{Map<String, String>? newDocumentIds}) {
if (o == null) return null;
var map = o as Map<String, dynamic>;
var backgroundIconFromMap = map['backgroundIcon'];
if (backgroundIconFromMap != null) {
backgroundIconFromMap = BackgroundEntity.fromMap(backgroundIconFromMap,
newDocumentIds: newDocumentIds);
}
var conditionsFromMap = map['conditions'];
if (conditionsFromMap != null) {
conditionsFromMap = StorageConditionsEntity.fromMap(conditionsFromMap,
newDocumentIds: newDocumentIds);
}
return PlayStoreEntity(
appId: map['appId'],
description: map['description'],
backgroundIcon: backgroundIconFromMap,
conditions: conditionsFromMap,
);
}