fromEntity static method
Implementation
static Future<MemberActionModel?> fromEntity(
String documentID, MemberActionEntity? entity) async {
if (entity == null) return null;
return MemberActionModel(
documentID: documentID,
text: entity.text,
description: entity.description,
action: await ActionModel.fromEntity(entity.action),
);
}