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