MessageReplyTo.fromJson constructor
a MessageReplyTo return type can be :
Implementation
factory MessageReplyTo.fromJson(Map<String, dynamic> json) {
switch (json["@type"]) {
case MessageReplyToMessage.CONSTRUCTOR:
return MessageReplyToMessage.fromJson(json);
case MessageReplyToStory.CONSTRUCTOR:
return MessageReplyToStory.fromJson(json);
default:
return const MessageReplyTo();
}
}