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