ChatActionBar.fromJson constructor

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

Parses whichever ChatActionBar subtype the JSON describes.

Implementation

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