InviteLinkChatType.fromJson constructor

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

Parses whichever InviteLinkChatType subtype the JSON describes.

Implementation

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