User.fromJsonWithChat constructor

User.fromJsonWithChat(
  1. Chat chat,
  2. Map<String, dynamic> json
)

Implementation

factory User.fromJsonWithChat(Chat chat, Map<String, dynamic> json) {
  return User.fromJson(json)..set(chat);
}