UserMessage.fromJsonWithChat constructor

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

Implementation

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