toModel method
Constructs a new WelcomeMessage from this WelcomeMessageMixin.
Implementation
WelcomeMessage toModel() {
return WelcomeMessage(
text: text,
attachments: attachments.map((e) => e.toModel()).toList(),
at: at,
);
}
Constructs a new WelcomeMessage from this WelcomeMessageMixin.
WelcomeMessage toModel() {
return WelcomeMessage(
text: text,
attachments: attachments.map((e) => e.toModel()).toList(),
at: at,
);
}