MessageReplyTo.fromJson constructor

MessageReplyTo.fromJson(
  1. Map<String, dynamic> json
)

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();
  }
}