fromEntity static method

Future<SimpleImageModel?> fromEntity(
  1. String documentID,
  2. SimpleImageEntity? entity
)

Implementation

static Future<SimpleImageModel?> fromEntity(
    String documentID, SimpleImageEntity? entity) async {
  if (entity == null) return null;
  return SimpleImageModel(
    documentID: documentID,
    appId: entity.appId ?? '',
    description: entity.description,
    conditions: await StorageConditionsModel.fromEntity(entity.conditions),
  );
}