toModel method

ChatContact toModel()

Constructs a new ChatContact from this ChatContactMixin.

Implementation

ChatContact toModel() => ChatContact(
  id,
  name: name,
  users: users.map((e) => e.toModel()).toList(),
  groups: groups.map((e) => Chat(e.id)).toList(),
  emails: emails.map((e) => e.email).toList(),
  phones: phones.map((e) => e.phone).toList(),
  favoritePosition: favoritePosition,
);