fromEntity static method
Implementation
static Future<LinkModel?> fromEntity(
String documentID, LinkEntity? entity) async {
if (entity == null) return null;
return LinkModel(
documentID: documentID,
linkText: entity.linkText,
action: await ActionModel.fromEntity(entity.action),
);
}