fromEntity static method

Future<MemberActionModel?> fromEntity(
  1. String documentID,
  2. MemberActionEntity? entity
)

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),
  );
}