MessageReaction constructor

MessageReaction({
  1. String? id,
  2. String? userId,
  3. String? emoji,
  4. Timestamp? createdAt,
})

Implementation

factory MessageReaction({
  $core.String? id,
  $core.String? userId,
  $core.String? emoji,
  $2.Timestamp? createdAt,
}) {
  final _result = create();
  if (id != null) {
    _result.id = id;
  }
  if (userId != null) {
    _result.userId = userId;
  }
  if (emoji != null) {
    _result.emoji = emoji;
  }
  if (createdAt != null) {
    _result.createdAt = createdAt;
  }
  return _result;
}