fromEntityPlus static method

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

Implementation

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

  return MemberActionModel(
    documentID: documentID,
    text: entity.text,
    description: entity.description,
    action: await ActionModel.fromEntityPlus(entity.action, appId: appId),
  );
}