SupergroupMembersFilter.fromJson constructor

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

Implementation

factory SupergroupMembersFilter.fromJson(Map<String, dynamic> json) {
  switch (json["@type"]) {
    case SupergroupMembersFilterRecent.CONSTRUCTOR:
      return SupergroupMembersFilterRecent.fromJson(json);
    case SupergroupMembersFilterContacts.CONSTRUCTOR:
      return SupergroupMembersFilterContacts.fromJson(json);
    case SupergroupMembersFilterAdministrators.CONSTRUCTOR:
      return SupergroupMembersFilterAdministrators.fromJson(json);
    case SupergroupMembersFilterSearch.CONSTRUCTOR:
      return SupergroupMembersFilterSearch.fromJson(json);
    case SupergroupMembersFilterRestricted.CONSTRUCTOR:
      return SupergroupMembersFilterRestricted.fromJson(json);
    case SupergroupMembersFilterBanned.CONSTRUCTOR:
      return SupergroupMembersFilterBanned.fromJson(json);
    case SupergroupMembersFilterMention.CONSTRUCTOR:
      return SupergroupMembersFilterMention.fromJson(json);
    case SupergroupMembersFilterBots.CONSTRUCTOR:
      return SupergroupMembersFilterBots.fromJson(json);
    default:
      return const SupergroupMembersFilter();
  }
}