InputMessageContent.fromJson constructor
Parses whichever InputMessageContent subtype the JSON describes.
Implementation
factory InputMessageContent.fromJson(Map<String, dynamic> json) {
final object = tdObjectFactories[json['@type']]?.call(json);
return object is InputMessageContent
? object
: UndecodedInputMessageContent(json);
}