ChatEventPermissionsChanged.fromJson constructor

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

Parse from a json

Implementation

factory ChatEventPermissionsChanged.fromJson(Map<String, dynamic> json) => ChatEventPermissionsChanged(
  oldPermissions: ChatPermissions.fromJson(json['old_permissions']),
  newPermissions: ChatPermissions.fromJson(json['new_permissions']),
);