fromEntity static method

Future<MemberSubscriptionModel?> fromEntity(
  1. String documentID,
  2. MemberSubscriptionEntity? entity
)

Implementation

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