fromEntityPlus static method

Future<LinkModel?> fromEntityPlus(
  1. String documentID,
  2. LinkEntity? entity, {
  3. String? appId,
})

Implementation

static Future<LinkModel?> fromEntityPlus(
    String documentID, LinkEntity? entity,
    {String? appId}) async {
  if (entity == null) return null;

  return LinkModel(
    documentID: documentID,
    linkText: entity.linkText,
    action: await ActionModel.fromEntityPlus(entity.action, appId: appId),
  );
}