fromJson static method
Implementation
static MessageInfo fromJson(Map<String, dynamic> json) {
final type = InfoType.fromJson(json['info'] as String);
return switch (type) {
InfoType.typingStatus => MessageInfoTyping.fromJson(json),
InfoType.transientMessage => MessageInfoTransient.fromJson(json),
};
}