fromEntity static method

Future<ChatMediumModel?> fromEntity(
  1. String documentID,
  2. ChatMediumEntity? entity
)

Implementation

static Future<ChatMediumModel?> fromEntity(
    String documentID, ChatMediumEntity? entity) async {
  if (entity == null) return null;
  return ChatMediumModel(
    documentID: documentID,
  );
}