toModel method

WelcomeMessage toModel()

Constructs a new WelcomeMessage from this WelcomeMessageMixin.

Implementation

WelcomeMessage toModel() {
  return WelcomeMessage(
    text: text,
    attachments: attachments.map((e) => e.toModel()).toList(),
    at: at,
  );
}