Explaining radio emission of magnetars via rotating and oscillating magnetospheres of neutron stars