TypingIndicator.fromMap constructor
TypingIndicator.fromMap(
- dynamic map
Creates a new TypingIndicator
instance from a map.
Implementation
factory TypingIndicator.fromMap(dynamic map) {
return TypingIndicator(
sender: User.fromMap(map['sender']),
receiverId: map['receiverId'],
receiverType: map['receiverType'],
metadata: map['metadata'],
lastTimestamp:
DateTime.fromMillisecondsSinceEpoch(map['lastTimestamp'] ?? 0 * 1000),
);
}