fromProtobuf static method
Implementation
static Message fromProtobuf(MessageProtobuf messageProtobuf) {
return Message(
uid: messageProtobuf.uid,
type: messageProtobuf.type,
content: messageProtobuf.content,
// status: messageProto.status,
status: BytedeskConstants.MESSAGE_STATUS_SUCCESS,
createdAt: messageProtobuf.createdAt,
client: messageProtobuf.client,
extra: messageProtobuf.extra,
//
threadTopic: messageProtobuf.thread!.topic!,
user: UserProtobuf.fromProtobuf(messageProtobuf),
);
}