attr property

String? attr

Convenient method Extension to generate attr from LookupAttribute enum

Implementation

String? get attr => {
      LookupAttribute.activityId: 'activity_id',
      LookupAttribute.reactionId: 'reaction_id',
      LookupAttribute.userId: 'user_id',
    }[this];