MessageReplyTo.fromJson constructor

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

Parses whichever MessageReplyTo subtype the JSON describes.

Implementation

factory MessageReplyTo.fromJson(Map<String, dynamic> json) {
  final object = tdObjectFactories[json['@type']]?.call(json);
  return object is MessageReplyTo ? object : UndecodedMessageReplyTo(json);
}