fromEntity static method

Future<AlbumEntryModel?> fromEntity(
  1. String documentID,
  2. AlbumEntryEntity? entity
)

Implementation

static Future<AlbumEntryModel?> fromEntity(
    String documentID, AlbumEntryEntity? entity) async {
  if (entity == null) return null;
  return AlbumEntryModel(
    documentID: documentID,
    name: entity.name,
  );
}