Object to Map serializer
@override Map<String, dynamic> toJson() { return { '@type': 'chatActionBarReportSpam', if (extra != null) '@extra': extra, 'can_unarchive': can_unarchive }; }